diff --git a/algorithms/tonepipeshell_1313.py b/algorithms/tonepipeshell_1313.py new file mode 100644 index 0000000..1153755 --- /dev/null +++ b/algorithms/tonepipeshell_1313.py @@ -0,0 +1,12 @@ +# Created by Still Hsu + +DESCRIPTION = "TOnePipeShell hash with seed 0x521 (1313)" +TYPE = 'unsigned_int' +TEST_1 = 3354381195 + + +def hash(data): + out_hash = 0 + for c in data: + out_hash = (c + 1313 * out_hash) & 0xffffffff + return out_hash