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