简体   繁体   中英

Searching in encrypted columns using PostgreSql with EF Core

I have a table with some encrypted columns and I want to search those columns using LIKE / ILIKE operators. However, I have achieved exact searching but I'm unable to do pattern matching.

NOTE: I am using server side encryption/decryption using value converters.

I am open for any solution as I have to implement this in anyway.

Thanks

This is fundamentally impossible. If the database does not contain clear text data, you cannot perform anything else but an equality search inside the database. You will have to perform pattern matching inside the application where you have the clear text values. Such is the price of security.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM