Last active
July 28, 2017 05:03
-
-
Save polonskiy/a11e02f1dc691d24002b to your computer and use it in GitHub Desktop.
xkcd password generator
This file contains hidden or 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
#!/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