Skip to content

Instantly share code, notes, and snippets.

@aswanipranjal
Forked from geoffalday/secretkey.py
Created August 8, 2017 08:26
Show Gist options
  • Save aswanipranjal/ed7cb7ab1780ad4ece8aee433290697f to your computer and use it in GitHub Desktop.
Save aswanipranjal/ed7cb7ab1780ad4ece8aee433290697f 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