Skip to content

Commit

Permalink
Merge pull request #55 from Tressos-Aristomenis/sdbm_65599_x64
Browse files Browse the repository at this point in the history
64-bit SDBM hash function with constant 65599
  • Loading branch information
herrcore authored Jan 20, 2024
2 parents 7eb7a5e + 072c84f commit 91f1fee
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 91f1fee

Please sign in to comment.