Skip to content

Instantly share code, notes, and snippets.

@dawranliou
Created August 28, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawranliou/1ec163f6e11332263d41aa40c3171c6a to your computer and use it in GitHub Desktop.
Save dawranliou/1ec163f6e11332263d41aa40c3171c6a to your computer and use it in GitHub Desktop.
Generate 16-bytes server secret key
import secrets
import string
alphabet = string.ascii_letters + string.digits
print(''.join(secrets.choice(alphabet) for i in range(16)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment