Skip to content

Instantly share code, notes, and snippets.

@hyponymous
Created June 3, 2016 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyponymous/f4b323f72b62dcc42dcb3e9e0ec0de9f to your computer and use it in GitHub Desktop.
Save hyponymous/f4b323f72b62dcc42dcb3e9e0ec0de9f to your computer and use it in GitHub Desktop.
A one-liner that prints a base85-encoded string containing 120 random bits
head -c 15 </dev/random | python3 -c "import sys, base64; sys.stdout.write('{}\n'.format(base64.b85encode(sys.stdin.buffer.read()).decode('utf-8')))" # ;b85-pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment