Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Crypto

by moxliukas (Curate)
on Oct 28, 2002 at 15:06 UTC ( #208517=note: print w/ replies, xml ) Need Help??


in reply to Crypto

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.


Comment on Re: Crypto
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-11-23 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (127 votes), past polls