Created
May 5, 2020 04:07
-
-
Save blended-ideas/d5b19f49182d173648ad8e5ddea8b8b8 to your computer and use it in GitHub Desktop.
Django 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
# Python Way of generating | |
python -c 'import random; print("".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)]))' | |
# Using Linux | |
base64 /dev/urandom | head -c50 | |
# or (slower) | |
base64 /dev/urandom | head -c50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment