Compare Encrypted String Using SQL
I have some data encrypted in SQL.
I want to use the LIKE command in SQL to compare a submitted form value to an encrypted value in the table.
How can I do this?
<cfquery>
SELECT *
FROM table
WHERE decrypt(name,key) = '#form.name#'
</cfquery>
Of course the decrpyt does not work in the example above as it gives an error. But how can I achieve the results without error?
Thanks.
Chuck
