Created
August 28, 2019 22:27
-
-
Save dawranliou/1ec163f6e11332263d41aa40c3171c6a to your computer and use it in GitHub Desktop.
Generate 16-bytes server secret key
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 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