Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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