1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
requeir("PasswordHash.php");
$password = $_REQUEST['password'];
$hasher = new PasswordHash(8, false); $hash = $header->HashPassword($password);
$password = $_REQUEST['password'];
$hasher = new PasswordHash(8, false); $stored_hash = "this is the hash we stored ealier";
$check = $hasher->CheckPassword($password, $stored_hash);
?>
|
近期评论