Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query: decrypting in where

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I have an encrypted column. I need to make a query that has a where inwhich I need to 'where' the encrypted column.

I am trying:

Code:
SELECT AES_DECRYPT(uname,'key') as suname,  AES_DECRYPT(pword,'key') as spword FROM table where uname = '$unameI' AND pword = '$pwordI'

this obviously is not working... how do I do this?



[conehead]
 
sorry - I got it:

Code:
SELECT AES_DECRYPT(uname,'key') as suname,  AES_DECRYPT(pword,'key') as spword FROM table where AES_DECRYPT(uname,'key') = '$unameI' AND AES_DECRYPT(pword,'key') = '$pwordI'

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top