To create a password a la xkcd:
But then I get bizarre combinations like "revolutionizer ananda Pleurobrachiidae squaller" - I don't care what xkcd says, I'm not remembering that one. :)perl -le '@w=<>;chomp@w;print join" ",map{$w[rand@w]}1..4'</usr/share/ +dict/words
Update: Slightly better, though a bit nasty to whoever owns the domain...
which gets me, as an example, "rather weight decay punctual". Much easier to memorise. I think I might keep this one :-)perl -MLWP::Simple -lE '@w=get("http://jbauman.com/gsl.html")=~/^\d+\s ++\d+\s+([a-z]+)/xmsg;say join" ",map{$w[rand@w]}1..4'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: xkcd-style password generation
by JavaFan (Canon) on Feb 01, 2012 at 22:36 UTC | |
by Tanktalus (Canon) on Feb 02, 2012 at 05:16 UTC | |
by BrowserUk (Patriarch) on Feb 02, 2012 at 13:46 UTC | |
by LanX (Saint) on Feb 02, 2012 at 00:35 UTC | |
Re: xkcd-style password generation
by BrowserUk (Patriarch) on Feb 01, 2012 at 20:30 UTC | |
by SuicideJunkie (Vicar) on Feb 01, 2012 at 20:52 UTC | |
Re: xkcd-style password generation
by tobyink (Canon) on Feb 02, 2012 at 15:07 UTC | |
by grantm (Parson) on Feb 02, 2012 at 20:09 UTC | |
Re: xkcd-style password generation
by ww (Archbishop) on Feb 02, 2012 at 13:12 UTC | |
by BrowserUk (Patriarch) on Feb 02, 2012 at 13:43 UTC |
Back to
Cool Uses for Perl