removed depriciated

This commit is contained in:
Christoph J. Scherr 2023-04-22 10:47:52 +02:00
parent 71b9c1f751
commit 9c82f457ce
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 0 additions and 8 deletions

View File

@ -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)