From f204557c0b4f77bc0b7a19bad6bb89a4b95a82e9 Mon Sep 17 00:00:00 2001 From: Golo-M Date: Wed, 19 Feb 2025 16:50:23 +0100 Subject: [PATCH] Added new algorithm for tonepipeshell --- algorithms/tonepipeshell_feb_2025.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 algorithms/tonepipeshell_feb_2025.py diff --git a/algorithms/tonepipeshell_feb_2025.py b/algorithms/tonepipeshell_feb_2025.py new file mode 100644 index 0000000..8f70af9 --- /dev/null +++ b/algorithms/tonepipeshell_feb_2025.py @@ -0,0 +1,9 @@ +DESCRIPTION = "TOnePipeShell hash with seed 0x14096B (1313131)" +TYPE = 'unsigned_int' +TEST_1 = 734769215 + +def hash(data): + out_hash = 0 + for c in data: + out_hash = (c + 0x14096B * out_hash) & 0xffffffff + return out_hash \ No newline at end of file