Skip to content

Instantly share code, notes, and snippets.

@polonskiy
Last active July 28, 2017 05:03
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 polonskiy/a11e02f1dc691d24002b to your computer and use it in GitHub Desktop.
Save polonskiy/a11e02f1dc691d24002b to your computer and use it in GitHub Desktop.
xkcd password generator
#!/bin/bash
LC_ALL=C grep '^[a-z]\+$' /usr/share/dict/words | shuf --random-source=/dev/urandom -n 4 | paste -s -d-
grep '^[abcdefghijklmnopqrstuvwxyz]\{3,7\}$' /usr/share/dict/words | shuf -n 6 | xargs | sed 's/ /-/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment