Answers for "python program to encrypt a string"

3

how to encrypt a string python

from cryptography.fernet import Fernet
message = "my deep dark secret".encode()

f = Fernet(key)
encrypted = f.encrypt(message)
Posted by: Guest on June-15-2020

Code answers related to "python program to encrypt a string"

Python Answers by Framework

Browse Popular Code Answers by Language