Skip to content

Instantly share code, notes, and snippets.

@ayushgun
Created January 27, 2023 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayushgun/1fd456f8cfb51e1d6ccf21d52c39317f to your computer and use it in GitHub Desktop.
Save ayushgun/1fd456f8cfb51e1d6ccf21d52c39317f to your computer and use it in GitHub Desktop.
Generate a SHA256 encryption key using
from cryptography.fernet import Fernet
key = Fernet.generate_key()
print(f"Fernet encryption key:\n{key.decode('utf8')}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment