Skip to content

Instantly share code, notes, and snippets.

@nam20485
Last active June 15, 2023 03:13
Show Gist options
  • Save nam20485/ce4eec533f8355830d8054aeebdc9a1f to your computer and use it in GitHub Desktop.
Save nam20485/ce4eec533f8355830d8054aeebdc9a1f to your computer and use it in GitHub Desktop.
Python 3 generate secret key
python -c 'import random; result = "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)]); print(result)'
#python -c 'import random; print "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)])'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment