Created
June 18, 2018 09:55
-
-
Save timbirk/11ca332f653ba0eca0a9c44f12e07824 to your computer and use it in GitHub Desktop.
Quick gist for generating 64 random characters on the command line
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
# It's been proven that password length is more important than complexity. | |
# For humans aLongPhraseLikeThis1 is more secure than an 8 character password. | |
# Generating a 64 character random character string on command line: | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9._~()!*:@,;+?-' | fold -w 64 | head -n 1 | |
# Because we probably use eyaml to encrypt the value, we don't ever need to know it: | |
eyaml encrypt --string=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9._~()!*:@,;+?-' | fold -w 64 | head -n 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment