Last active
May 14, 2024 07:34
-
-
Save shaunmolloy/6f7452b19ebee3cf716f7f5c8f1a90c5 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