Source Code:
(back to article)
<?php $password = 'mypassword'; $hashed_password = '$2y$10$abcdefghijklmnopqrstuvwxyz'; if (password_verify($password, $hashed_password)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; }
Result:
Report an issue