Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

encrypt and decrypt sha256 python

# encrypting
from cryptography.fernet import Fernet
message = "my deep dark secret".encode()
f = Fernet(key)
encrypted = f.encrypt(message)
# decrypting
from cryptography.fernet import Fernet
encrypted = b"...encrypted bytes..."
f = Fernet(key)
decrypted = f.decrypt(encrypted)
Source by www.folkstalk.com #
 
PREVIOUS NEXT
Tagged: #encrypt #decrypt #python
ADD COMMENT
Topic
Name
3+2 =