Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: xkcd-style password generation

by JavaFan (Canon)
on Feb 01, 2012 at 22:36 UTC ( #951310=note: print w/ replies, xml ) Need Help??


in reply to xkcd-style password generation

With a little adaption:

perl -le '@w=grep{length()>5&&length()<8&&/^[a-z]+$/}<>;chomp@w;print +join" ",map{$w[rand@w]}1..4'</usr/share/dict/words
Some samples:
octyl forrad ruble smoked unlit stamp finish stumpy baring pattu helium place tiptop sundri alumni anilla dodge blout spurl fasher lownly setal untar nuchal
There are 23560 entries in my /usr/share/dict/words that match, giving 308106701416960000 different potential pass phrases. If an attacker can test 1 billion pass phrases per second, it takes almost 10 years to check the entire key space.

I consider that secure enough for my Perlmonks password.


Comment on Re: xkcd-style password generation
Select or Download Code
Re^2: xkcd-style password generation
by LanX (Canon) on Feb 02, 2012 at 00:35 UTC
    > I consider that secure enough for my Perlmonks password.

    perlmonk's password is restricted to 8 characters.

    Cheers Rolf

Re^2: xkcd-style password generation
by Tanktalus (Canon) on Feb 02, 2012 at 05:16 UTC

    Hahaaaa... ++ just for saying "secure" and "Perlmonks password" in the same sentence with a straight face. :-P :-) Plaintext passwords? Hahaha... thanks for that :-)

      Plaintext passwords?

      Someone remind me again; why is it so hard to change that?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951310]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-18 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls