Skip to content

Instantly share code, notes, and snippets.

@sh1n0b1
Created February 6, 2017 07:09
Show Gist options
  • Select an option

  • Save sh1n0b1/0353b46efb051d3d610a4c908c7a3ea5 to your computer and use it in GitHub Desktop.

Select an option

Save sh1n0b1/0353b46efb051d3d610a4c908c7a3ea5 to your computer and use it in GitHub Desktop.

Revisions

  1. sh1n0b1 created this gist Feb 6, 2017.
    7 changes: 7 additions & 0 deletions gen_secret.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/python3
    from base64 import b64encode
    from os import urandom

    random_bytes = urandom(64)
    token = b64encode(random_bytes).decode('utf-8')
    print(token)