-
-
Save soiqualang/a4d9adbf97e2383f37b3d9cc5bcf1936 to your computer and use it in GitHub Desktop.
secret-key - Generate an app 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
#!/usr/bin/env python | |
# secret-key | |
# Generate an app secret key | |
from base64 import b64encode | |
from os import urandom | |
random_bytes = urandom(64) | |
token = b64encode(random_bytes).decode() | |
print(token) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment