Need A New Password

By | January 27, 2013


Need A new password? Here is a randomly generated one:


Here is the PHP code to generate these passwords:

function genRandomString($length) {
    $length = 10;
    $characters = '123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnopq3stuvwxyz!^+.?';
    $string = "";

    for ($p = 0; $p < $length; $p++) {
        $string .= $characters[mt_rand(0, strlen($characters))];
    }

    return $string;
}

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *