Skip to content

Instantly share code, notes, and snippets.

@blended-ideas
Created May 5, 2020 04:07
Show Gist options
  • Save blended-ideas/d5b19f49182d173648ad8e5ddea8b8b8 to your computer and use it in GitHub Desktop.
Save blended-ideas/d5b19f49182d173648ad8e5ddea8b8b8 to your computer and use it in GitHub Desktop.
Django Secret Key Generator
# 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