Skip to content

Instantly share code, notes, and snippets.

@greed2411
Created February 18, 2018 16:38
Show Gist options
  • Save greed2411/41a5e6ba21eb822859d94f48829cdcf3 to your computer and use it in GitHub Desktop.
Save greed2411/41a5e6ba21eb822859d94f48829cdcf3 to your computer and use it in GitHub Desktop.
A unique cookie secret.
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