<?php // use this to create the hash then delete it. //echo password_hash("thepassword", PASSWORD_DEFAULT); // paste hash here $passwordKey = '$2y$10$j33UPA7gNxSOBsXQcyquLOZRuO6X8k8hZOb1RA79iN8gLlqp9eIPO'; $userInputGood = "thepassword"; $userInputBad = "notthepassword"; if (password_verify($userInputGood, $passwordKey)) echo "correct "; else echo "incorrect"; if (password_verify($userInputBad, $passwordKey)) echo "correct "; else echo "incorrect";
You have javascript disabled. You will not be able to edit any code.