Or is there a software to auto generate random passwords?
This function will include half digits and half numbers:
function generateMixedPassword($length = 8) {
$base = 'abcdefghijklmnopqrstuvwxyz';
$baseD = '0123456789';
$r = array();
for ($i = 0; $i < $length; $i += 2) {
$r[] = substr($base, rand(0, strlen($base) - 1), 1);
}
for ($i = 0; $i < $length; $i += 2) {
$r[] = substr($baseD, rand(0, strlen($baseD) - 1), 1);
}
shuffle($r);
return implode('', $r);
}
Using the same login, it can be extended to also include special characters