Skip to content

Instantly share code, notes, and snippets.

@n6g7
Created March 12, 2018 21:46
Show Gist options
  • Save n6g7/a56e883eed41b31719fec9fb986d26bd to your computer and use it in GitHub Desktop.
Save n6g7/a56e883eed41b31719fec9fb986d26bd to your computer and use it in GitHub Desktop.
Secret key generator
import random
SECRET_KEY = ''.join([
random.SystemRandom().choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$^&*(-_=+)')
for i in range(50)
])
print(SECRET_KEY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment