Skip to content

Commit e762bb4

Browse files
committed
fixed small issue
fixed sha.py not having proper function call
1 parent cbf6192 commit e762bb4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Encryption_Project/encryption

Encryption_Project/encryption/sha.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
import hashlib
88

99
def encryption_sha(message: str):
10-
return hashlib.sha256().digest() # This makes the encryption in SHA-256. This is the usually how your passkeys are encrypted
10+
encoded_message = message.encode()
11+
return hashlib.sha256(encoded_message).digest() # This makes the encryption in SHA-256. This is the usually how your passkeys are encrypted

0 commit comments

Comments
 (0)