Skip to content

Instantly share code, notes, and snippets.

@proshanto
Forked from geoffalday/secretkey.py
Created January 24, 2018 20:27
Show Gist options
  • Save proshanto/01479026204955b20feb41f2b029ad69 to your computer and use it in GitHub Desktop.
Save proshanto/01479026204955b20feb41f2b029ad69 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