Charlie Drage

xkcd password generator

Tired of trying to figure out what password to generate?

Stick this in your .bashrc and smoke it.

xkcd_password() {
  shuf -n5 /usr/share/dict/words | sed -e ':a;N;$!ba;s/\n/ /g;s/'\''//g;s/\b\(.\)/\u\1/g;s/ //g'
}
~                                                                             ⍉
▶ xkcd_password 
DenunciationsVertebralForgersDimerGlum

~                                                                              
▶ 

Comments