Skip to content

Instantly share code, notes, and snippets.

@leqnam
Forked from geoffalday/secretkey.py
Created July 22, 2019 08:59
Show Gist options
  • Save leqnam/67bab14c1df44fa65b3f85394fe0df02 to your computer and use it in GitHub Desktop.
Save leqnam/67bab14c1df44fa65b3f85394fe0df02 to your computer and use it in GitHub Desktop.
How to generate a secret key with Python
# How to generate a secret key with Python
# via http://flask.pocoo.org/docs/quickstart/
import os
os.urandom(24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment