Skip to content
Permalink
Browse files
Fixed dumb error in hash calculation
  • Loading branch information
James Shuttleworth committed Oct 1, 2021
1 parent 0643195 commit 5a1f3bbd29c28623368668304fe2dfc61eb16aa0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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:]:

0 comments on commit 5a1f3bb

Please sign in to comment.