We are using SQL Encryption to encrypt data in the database using this approach.SQL Encryption. As the main aim is to avoid data theft when the database is compromised. We will be using HTTP(s) certificates while accessing data from Server to Client.
The data is encrypted in the table level. To access the data we have created stored procedures to access them.
We have to depend on stored procedures as we have to specifically tell the symnmetric key and certificate we are using in our DB.
GO
OPEN SYMMETRIC KEY mySymmetrickKey DECRYPTION
BY CERTIFICATE myCertificate
Instead of depending on the databse stored procedures can we specify the symmetric key and certificate name in our SQL Query(LINQ), to access the various tables in our DB.
We are using DB first Entity Framework approach for data access. Any advises on these ?