I know this has to be a common question, but I can't find the answer.
I'm using PHP's password_verify. If the password contains "&" it won't verify. Without the "&" it does. What do I need to do to escape the character?
<?php
$password_entered = "Password&";
$stored_secret = '$2y$12$oG8A4pbZSfQFxBQ0cHcJTuJ1h7wzzhlMnqjhnurN4.0/AfS/Wp9W2';
if (password_verify($newstr, $stored_secret))
{
echo "Right\n";
}
else
{
echo "Wrong\n";
}
?>
$newstr
set?