I would like to check with you regarding dynamic data encryption/masking when reading from a SQL Server database.
To elaborate further, the data elements should be encrypted/masked when a set of users querying the tables. The data stored at rest should be clear (i.e. unmasked/ not encrypted).
Also, the masking values should be consistent across the database. E.g. if a username john - masked/encrypted to xyz in schema 1 table a, schema 2 table b should have the same masked/encrypted value for the same user. So that we can join the cross-schema tables.
Key notes:
- Data at rest should be in clear form i.e. unchanged from source.
- Encryption/masking should be consistent
I have explored the SQL Server TDE & DDE options but doesn't suit my requirements.
Would like to hear from experts who handled such a requirement in a SQL Server database.