Home > Net >  Searching in encrypted columns using PostgreSql with EF Core
Searching in encrypted columns using PostgreSql with EF Core

Time:06-10

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

CodePudding user response:

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.

  • Related