Skip to content

Commit a01642b

Browse files
authored
Merge pull request #79 from xusheng6/main
Added custom_shift_add
2 parents 9d1ae95 + 97fab46 commit a01642b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

algorithms/custom_shift_add.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env python
2+
3+
DESCRIPTION = "shift+add with a custom initial value seen in a malware."
4+
TYPE = "unsigned_int"
5+
TEST_1 = 4294890437
6+
7+
8+
def hash(data):
9+
result = 0x733e14f
10+
for val in data:
11+
result = (result << 1) + val
12+
result &= 0xffffffff
13+
return result

0 commit comments

Comments
 (0)