Created
June 3, 2016 18:31
-
-
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
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
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