/ Published in: PHP
Generate random plain and md5 password. Depend on Password Class
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function genPassword() { //Generate password $letter = array("a", "b", "c", "d", "e", "f", "g", "h", "k", "m", "n", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"); $lenght = 8; { { } { } { } } // Create object for further use. Depend on Password Class $oPassword = new Password('',$md5Hash,$password); return $oPassword; }