Here are 2 kind PHP code can generat strong passwords:
$ Password_length = 9;
Function make_seed (){
List ($ USEC, $ Sec) = explode ('', microtime ());
Return (float) $ sec + (float) $ USEC * 100000 );
}
Srand (make_seed ());
$ Alfa = "1234567890qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm ";
$ Token = "";
For ($ I = 0; $ I <$ password_length; $ I ++ ){
$ Token. = $ Alfa [rand (0, strlen ($ Alfa)];
}
Echo $ token;
--
// Create Password
$ Totalchar = 8; // Number of chars in the password
$ Salt = "abcdefghijklmnpqrstuvwxyzabcdefghijklmnpqrstuvwxyz123456789"; // salt to select chars from
Srand (double) microtime () * 1000000); // start the random Generator
$ Spass = "; // set the in‑variable
For ($ I = 0; $ I <$ totalchar; $ I ++) // loop and create Password
$ Spass = $ spass. substr ($ salt, Rand () % strlen ($ salt), 1 );
Run this in a loop to generate as your password as you want.