Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Last active December 21, 2019 10:41
Show Gist options
  • Save rohan-molloy/b1f1e7dab081aa7163811b326bf4ddf3 to your computer and use it in GitHub Desktop.
Save rohan-molloy/b1f1e7dab081aa7163811b326bf4ddf3 to your computer and use it in GitHub Desktop.
Generate a passphrase using list of 993 words.

Generate a passphrase

Example "Shake-No-Material-Activity-873"
These passwords are stronger than one might expect. There are 40 billion 267 million 857 thousand 960 different ways to select four words from the list.
A random number between 0..999 is added at the end, increasing the search complexity by several orders of magnitude
genpassphrase() { echo $(curl -fSsL https://raw.githubusercontent.com/rohan-molloy/generate-hostnames/master/words.txt | shuf -n4 | tr '\n' '-')$(($RANDOM%999)); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment