Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 querying encrypted data w/ wildcards

Author  Topic 

kmillerAtHRS
Starting Member

1 Post

Posted - 2008-09-12 : 01:48:40
I have a table with hashed data. When I query against the hashed data using a hashed value, and also use a wildcard, it works fine.

example: select * from table where hashedfieldname like '% hashed value%'

However, if I take that same hashed value and remove the last character (before hashing it), and run the same query, I get no results. Does anyone have an idea how I can query hashed data using wildcard characters?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-12 : 02:22:57
You can't.
The reason for using a hash is that you can't "unhash" the hash to see the original text.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -