Created
March 12, 2018 21:46
-
-
Save n6g7/a56e883eed41b31719fec9fb986d26bd to your computer and use it in GitHub Desktop.
Secret key generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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