From e762bb4f4f3576c1787ea70ecf2df900ee048dd5 Mon Sep 17 00:00:00 2001 From: moonabys <255314530+moonabys@users.noreply.github.com> Date: Sat, 28 Mar 2026 15:56:39 +0000 Subject: [PATCH] fixed small issue fixed sha.py not having proper function call --- Encryption_Project/encryption/sha.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Encryption_Project/encryption/sha.py b/Encryption_Project/encryption/sha.py index 1892060..d91a0b6 100644 --- a/Encryption_Project/encryption/sha.py +++ b/Encryption_Project/encryption/sha.py @@ -7,4 +7,5 @@ import hashlib def encryption_sha(message: str): - return hashlib.sha256().digest() # This makes the encryption in SHA-256. This is the usually how your passkeys are encrypted + encoded_message = message.encode() + return hashlib.sha256(encoded_message).digest() # This makes the encryption in SHA-256. This is the usually how your passkeys are encrypted