in reply to Alpha/Numeric random generating
Easy. It even lets you optionally choose the format of the password (which is the AAAADAAAD stuff) and the char set. I don't like zeroes in passwords: too hard to distinguish from O's when handing them out.use String::Random; my $rand = new String::Random; $rand->{'A'} = [ 'A'..'Z', 'a'..'z' ]; $rand->{'D'} = [ '1'..'9' ]; # no zero $passwd = $rand->randpattern("AAAADAAAD"); print "Password $passwd\n";
HTH, --traveler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Alpha/Numeric random generating
by FireBird34 (Pilgrim) on Nov 08, 2002 at 22:14 UTC |