Generate A Random Password
This simple tool will generate a random password.
The Code
function generateRandomPassword(){$new_pass = "";
$alphabet = array ("A","B","C","D","E","F","G","H","I","J","K","L",
"M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
$characters = array("1","2","3","4","5","6","7","8","9","0", "!", "#", "@", "|","%");
for($i=0;$i<8;$i++){
$ran = rand(400,10000);
if($odd = $ran%2){
// use chars
$id = rand(0, sizeOf($characters));
$new_pass.=$characters[$id];
}else{
$id = rand(0, sizeOf($alphabet));
$new_pass.=$alphabet[$id];
}
}
return $new_pass;
}
Are you interested in a custom solution for your website? Click here to receive a free quote.
Free Tools
Enjoy some of our free tools.MD5 Encryption Tool
What is my IP Address?
Generate a Random Password
