Where clause not working with aes_decrypt function
I am trying to validate a user's login by using the aes_decrypt function, but it isn't working properly for me. I am echoing the results to the screen and everything appears correct, but it still won't let me into the site. Thanks for any help.
$loginUser = "SELECT username, aes_decrypt(password, 'key')
FROM login
WHERE username = '$username' and password = aes_decrypt('$password', 'key')";
$userIn = mysql_query($loginUser) or die("The login error is: " . mysql_error());
Subject
Written By
Posted
Where clause not working with aes_decrypt function
December 09, 2008 11:21AM
December 15, 2008 11:37AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.