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 browsing the Monastery: (5)
As of 2014-09-21 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (175 votes), past polls