Skip to content

Commit

Permalink
64-bit SDBM hash function with constant 65599
Browse files Browse the repository at this point in the history
  • Loading branch information
Tressos-Aristomenis committed Jan 20, 2024
1 parent 7eb7a5e commit 072c84f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions algorithms/sdbm_65599_x64.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DESCRIPTION = "The original SDBM hash function with the constant 65599. Used by Emotet malware."
TYPE = 'unsigned_long'
TEST_1 = 18326187587583583519


def hash(data):
hsh = 0
for d in data:
hsh = d + 0x1003f * hsh
return hsh & 0xffffffffffffffff

0 comments on commit 072c84f

Please sign in to comment.