Last active
February 26, 2023 05:14
-
-
Save YiLi225/f995fc306524d2366e28735775ebfe1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.colab import files | |
uploaded = files.upload() | |
!pip install cryptography | |
from cryptography.fernet import Fernet | |
## Generate Fernet keys | |
key = Fernet.generate_key() | |
# string the key in a file | |
with open('filekey.key', 'wb') as filekey: | |
filekey.write(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment