in reply to Creating random passwords?
@validi=qw/a b c d e f g h i m n p q r s t u v z 1 2 3 4 5 6 7 8 9 1 +2 3 4 5 6 7 8 9 * * * * + + + + - - - - A B C D E F G H L M N P Q R + S T U V Z/; @validibis=qw/a . . . . . . , , , , , , : : : : : : ; ; ; ; ; ; b c d + e f g h i m n p q r s t u v z 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 * + * * * + + + + - - - - A B C D E F G H L M N P Q R S T U V Z/; $quantibis=@validibis; $quanti=@validi; $ran=int(rand($quanti)); $pwd=$validi[$ran]; foreach(1,2,3,4,5) { $rand=int(rand($quantibis)); $pwd.=$validibis[$rand]; } $ran=int(rand($quanti)); $pwd.=$validi[$ran]; print "La password per te creata è:\t$pwd";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Creating random passwords?
by stonecolddevin (Parson) on Jul 06, 2003 at 05:34 UTC |