We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbf6192 commit e762bb4Copy full SHA for e762bb4
1 file changed
Encryption_Project/encryption/sha.py
@@ -7,4 +7,5 @@
7
import hashlib
8
9
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
+ 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