01.06.2013, 00:47
You would hash the password the user tried using at the UCP:
And, after hashing the password they tried using, you would compare it to the value you have in your SQL database.
PHP код:
$hashed_password = hash("whirlpool", $_POST["password"]);
PHP код:
if($hashed_password == $sql_result["password"])
{
// They're a match.
}