I have a requirement to use TDE for data protection and to prevent DBAs from seeing the data. Our current data access layer use LINQ to access SQL without TDE. If the database is converted to TDE with encrypted columns, we have to make LINQ produce queries like below:
OPEN SYMMETRIC KEY MyKey
DECRYPTION BY PASSWORD = 'mypassword';
SELECT CONVERT(VARCHAR(MAX), DECRYPTBYKEY(MyEncryptedCol))
FROM dbo.MyEncryptedTable;
CLOSE SYMMETRIC KEY MyKey;
What is the best way to convert our existing data layer with minimal effort? I prefer continue using LINQ.
Currently using SQL Server 2012, .Net 4.5, C#