Ich generiere ein neues Passwort mit folgendem Code:
PHP-Code:
$pool = "qwertzupasdfghkyxcvbnm";
$pool .= "23456789";
$pool .= "WERTZUPLKJHGFDSAYXCVBNM";
srand ((double)microtime()*1000000);
for($index = 0; $index < 5; $index++)
{
$pass_word .= substr($pool,(rand()%(strlen ($pool))), 1);
}
Wie mache ich das am besten?
Danke!
Gruß
Dennis
Einen Kommentar schreiben: