Skip to content

Instantly share code, notes, and snippets.

@timbirk
Created June 18, 2018 09:55
Show Gist options
  • Save timbirk/11ca332f653ba0eca0a9c44f12e07824 to your computer and use it in GitHub Desktop.
Save timbirk/11ca332f653ba0eca0a9c44f12e07824 to your computer and use it in GitHub Desktop.
Quick gist for generating 64 random characters on the command line
# 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