i built a script to generate passwords:

        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?


--
Ihr WEBberater
Stuttgarter Str.3, D-73033 Goeppingen
Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598
http://www.wa-p.de ** mailto:[EMAIL PROTECTED]


-- 
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]

Reply via email to