From c23b69d89d64420e8030e61e2430ee8de6592b92 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Thu, 18 Mar 2021 22:26:52 -0400 Subject: [PATCH] (v1.10) Fixed Crypto.Hash bug --- src/Picocrypt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Picocrypt.py b/src/Picocrypt.py index e4bbeaa..5e55d2e 100644 --- a/src/Picocrypt.py +++ b/src/Picocrypt.py @@ -458,7 +458,7 @@ def start(): progress["value"] = 0 # Compute hash of derived key - check = sha3_512() + check = sha3_512.new() check.update(key) check = check.digest() @@ -485,7 +485,7 @@ def start(): # Create XChaCha20-Poly1305 object cipher = ChaCha20_Poly1305.new(key=key,nonce=nonce) # Cyclic redundancy check for file corruption - crc = sha3_512() + crc = sha3_512.new() # Amount of data encrypted/decrypted, total file size, starting time done = 0