<? /* Programmed by Christian Haensel, christian@chftp.com, LINK1http://www.chftp.comLINK1 Exclusively published on weberdev.com. If you like my scripts, please let me know or link to me. You may copy, redistirubte, change and alter my scripts as long as this information remains intact */ $length = 6; // Must be a multiple of 2 !! So 14 will work, 15 won't, 16 will, 17 won't and so on // Password generation $conso=array("b","c","d","f","g","h","j","k","l", "m","n","p","r","s","t","v","w","x","y","z"); $vocal=array("a","e","i","o","u"); $password=""; srand ((double)microtime()*1000000); $max = $length/2; for($i=1; $i<=$max; $i++) { $password.=$conso[rand(0,19)]; $password.=$vocal[rand(0,4)]; } $newpass = $password; // ENDE Password generation echo $newpass."<p>"; ?> |
Tutorials, Chrome extensions Code samples JavaScript Angular CSS HTML. Updated regularly. Visit and subscribe to the rss feed.
Tuesday, December 30, 2008
Php - Human readable PHP password generator
Human readable PHP password generator
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment