> function passwort($laenge)
> {
> $allowed =
> "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890:-+=";
> $allowed_length = strlen($allowed);
>
> $i=0;
> $pw = "";
>
> while ($i<$laenge) {
> $pos = rand(0,$allowed_length);
> $pw.= substr($allowed,$pos,1);
> $i++;
> }
> return $pw;
> }
>
> My questions is, if this is a good or bad way?
It's a whole lot better than using real words. As long as you encrypt the
passwords using a good one-way hash when you store them on the server, you
should be fine.
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]