- password_verify: documentation ( source)
<?php
// See the password_hash() example to see where this came from.
$hash = '89d9613d4758e73fb33baf0550e56461';
if (password_verify('54af4ba64ec0a86f4f3e1e45159df08902ab8f40', $hash)) {
echo 'Password is valid!';
} else {
echo 'Invalid password.';
}
?>