Answers for "python packages for cryptography"

0

Installing python cryptography

$ pip install cryptography
Posted by: Guest on April-29-2021
6

cryptography python

>>> from cryptography.fernet import Fernet
>>> # Put this somewhere safe!
>>> key = Fernet.generate_key()
>>> f = Fernet(key)
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
>>> token
'...'
>>> f.decrypt(token)
'A really secret message. Not for prying eyes.'
Posted by: Guest on December-23-2020

Code answers related to "python packages for cryptography"

Browse Popular Code Answers by Language