From 9c82f457ce0c8b92162b3f719c027734b5c2b95f Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 22 Apr 2023 10:47:52 +0200 Subject: [PATCH] removed depriciated --- src/trash-hash.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/trash-hash.py b/src/trash-hash.py index 4dd50cc..b5a9f8a 100755 --- a/src/trash-hash.py +++ b/src/trash-hash.py @@ -48,14 +48,6 @@ def trash_hash(input: bytearray) -> bytearray: return A -def use(): - payload_a = bytearray(b"AAAA") - # works, but is too cheap - #payload_b = bytearray(b"AAAA\xff\xff") - payload_b = bytearray(b'\xb2\xef\x82t<~<\xbe\x8d\xca\xe2\t\xdc7E\x10') - print("a: %s\nb: %s" % (trash_hash(payload_a).hex(), trash_hash(payload_b).hex())) - print("identical: %s" % test_collision(payload_a, payload_b)) - def test_collision(a: bytearray, b: bytearray) -> bool: return trash_hash(a) == trash_hash(b)