Skip to content

Instantly share code, notes, and snippets.

@reidrac
Created June 1, 2011 17:20
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 reidrac/1002796 to your computer and use it in GitHub Desktop.
Save reidrac/1002796 to your computer and use it in GitHub Desktop.
Generate a new random secret_key
#random key
from random import choice
charset = [chr(i) for i in range(32,38) + range(40,127)]
secret_key = ''.join([choice(charset) for i in range(64)])
print secret_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment