Created
February 18, 2018 16:38
-
-
Save greed2411/41a5e6ba21eb822859d94f48829cdcf3 to your computer and use it in GitHub Desktop.
A unique cookie secret.
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 base64, uuid | |
def cookie_secret(): | |
return base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) | |
if __name__ == "__main__": | |
print(base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment