#Search in Encrypted data

4 messages · Page 1 of 1 (latest)

lofty sail
#

Hey anyone can suggest me the best way to encrypt the field which needs to be searched i am currently using Deterministic encryption but this can't be used for search bar kind of places any good suggestion , Thank you...

placid thorn
#

This is in db topic, I assume you have some encrypted column. Encrypted data is opaque to the DB, it sees it as text. The only way to search it to read all records, decrypt in memory and filter.

lofty onyx
#

You can encrypt the user’s input and query by the ciphertext (and index that column), you avoid decrypting too many records but this only works for exact equality queries.

If you need to search by "contains", encrypted values are opaque to the DB, so you’ll need a different design, like maintain a separate search index.

vivid lake