Skip to content

Instantly share code, notes, and snippets.

@simonjgreen
Created August 26, 2013 21:58
Show Gist options
  • Save simonjgreen/6347189 to your computer and use it in GitHub Desktop.
Save simonjgreen/6347189 to your computer and use it in GitHub Desktop.
Creates an XKCD style 4word password from your dict files
#!/bin/bash
p=""
word=$(shuf -n4 /usr/share/dict/words)
for w in ${word[@]}
do
w=${w^}
w=${w//\'/}
p+=$w
done
echo $p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment