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