Skip to content

Instantly share code, notes, and snippets.

@sh1n0b1
Created February 6, 2017 07:09
Show Gist options
  • Save sh1n0b1/0353b46efb051d3d610a4c908c7a3ea5 to your computer and use it in GitHub Desktop.
Save sh1n0b1/0353b46efb051d3d610a4c908c7a3ea5 to your computer and use it in GitHub Desktop.
#!/bin/python3
from base64 import b64encode
from os import urandom
random_bytes = urandom(64)
token = b64encode(random_bytes).decode('utf-8')
print(token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment