Sicheres Passwort erstellen



Mit diesem Script wird ein sicheres Passwort erstellt. Dieses setzt sich aus grossen und kleinen Buchstaben und Zahlen zusammen.


<?php

// Sicheres Passwort erstellen
$passwort = "";
$pool = "qwertzupasdfghkyxcvbnm";
$pool .= "WERTZUPLKJHGFDSAYXCVBNM";
$pool .= "23456789";
srand ((double)microtime()*1000000);
for($index = 0; $index < 8; $index++)
{
$passwort .= substr($pool,(rand()%(strlen ($pool))), 1);
}
echo $passwort;

?>



created by NETTECS.ch