in reply to Passwords
(Slightly altered version of the example at crypt).print join '', (0..9, 'A'..'Z', 'a'..'z')[rand 62] for(1..7);
If you want to have variable length passwords, try adding a rand statement inside the for, that adds a random number to the 7.
Hope that helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Passwords
by Anonymous Monk on Aug 02, 2002 at 11:27 UTC | |
by Dog and Pony (Priest) on Aug 02, 2002 at 11:42 UTC |