SQL Encrypted Columns in WHERE Clause

后端 未结 3 2122
难免孤独
难免孤独 2020-12-31 07:51

I am looking to apply SQL column level encryption using symmetric keys. The initial steps needed to create the Database Master Key, Certificates and Symmetric Keys seems st

3条回答
  •  不思量自难忘°
    2020-12-31 08:23

    One option you have is add a new column to the table (or have a WITH SCHEMABINDING view with a calculated column in it, and index that) with a one-way HASH of the search value. It doens't have to be a strong hash - something as simple as CHECKSUM will work. Then you hash the search value in your lookup and filter it by the hash, which is indexed. That way, you can expose something searchable and indexable, without actually exposing the value itself.

    However, if there's another way to do this directly, I'd love to know what it is :)

提交回复
热议问题