in reply to Creating random passwords?

hey dear monks

here a simple snippet of my newbie app..
enjoy and correct it please.

@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";


cheers from sunny roma lor*

Replies are listed 'Best First'.
Re: Re: Creating random passwords?
by stonecolddevin (Parson) on Jul 06, 2003 at 05:34 UTC
    I will certainly test it, nice spanish!!! I love that language :-)

    And if you're feeling lucky... come and take me home And if you feel loved If you feel lucky, if you feel loved If you feel lucky, if you feel loved You've crossed the walls - Excelled Further along through their hell All for my heart, I watch you kill You always have, you always will Now spread your wings and sail out to me....