mirror of
https://github.com/OALabs/hashdb
synced 2026-06-08 12:05:11 +00:00
Merge pull request #55 from Tressos-Aristomenis/sdbm_65599_x64
64-bit SDBM hash function with constant 65599
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user