From 5a1f3bbd29c28623368668304fe2dfc61eb16aa0 Mon Sep 17 00:00:00 2001 From: James Shuttleworth Date: Fri, 1 Oct 2021 12:39:50 +0100 Subject: [PATCH] Fixed dumb error in hash calculation --- src/pearson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pearson.py b/src/pearson.py index f4d2354..512ee14 100644 --- a/src/pearson.py +++ b/src/pearson.py @@ -13,7 +13,7 @@ def hashN(message: str, nBytes: int) -> str: """ retval=0 - for j in range(nBytes-1): + for j in range(nBytes): #Change the first byte h = table[(ord(message[j]) + j) % 256]; for i in message[1:]: