Or is there a software to auto generate random passwords?
This function will generate more stronger password than most woted solution:
function generatePassword($size=8){
$p = openssl_random_pseudo_bytes(ceil($size*0.67), $crypto_strong);
$p = str_replace('=', '', base64_encode($p));
$p = strtr($p, '+/', '^*');
return substr($p, 0, $size);
}
Each character of password will be [A-Z] or [a-z] or ^ or *