Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Random string generator

by Mr_Person (Hermit)
on Feb 06, 2003 at 02:47 UTC ( [id://233044]=note: print w/replies, xml ) Need Help??


in reply to Random string generator

I think what you want is String::Random.

Replies are listed 'Best First'.
Re: Re: Random string generator
by Anonymous Monk on Feb 06, 2003 at 08:51 UTC
    Since people might confuse 'l' and '1' (did you ;-) ?), O and 0, when jotting passwords down, i use the following char set for string::random :
    use String::Random; my $pattern = new String::Random; my $size = 8; # don't use i,I,1,l,L,0,O, etc.. $pattern->{'A'} = [ 'A'..'H', 'J', 'K', 'M', 'N', 'P'..'Z', 'a'..'h', +'j', 'k', 'm', 'n', 'p'..'z', '2'..'9' ]; print $pattern->randpattern('A' x $size);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-03-28 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found