Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Crypto

by NodeReaper (Curate)
on Oct 28, 2002 at 14:55 UTC ( [id://208514]=perlquestion: print w/replies, xml ) Need Help??

NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Crypto
by Molt (Chaplain) on Oct 28, 2002 at 15:28 UTC

    It's worth noting that this'll only work where the password is encrypted using the inbuilt crypt(3) format. Some systems now use stronger protection than this, such as the MD5 algorithm.

    You may be interested in the following CPAN modules too.. Crypt-RandPasswd for creating random pronouncable passwords, and Data::Password for evaluating how strong a password is.

    Update: Changed 'encryption' to 'protection' and 'algorithm' thanks to nothingmuch reminding me MD5 isn't actually an encryption.

Re: Crypto
by moxliukas (Curate) on Oct 28, 2002 at 15:06 UTC

    Generating password for users? Isn't that supposed to be done with rand()?

    Something like this:

    my @possible_chars = 'a'..'z'; my $passw = ''; $passw .= $possible_chars[int rand scalar @possible_chars] for(1..8);

    Either that, or I have totally misunderstood your question. Sorry if that is the case.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-23 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found