Transparent Data Encryption (TDE) is an encryption mechanism of encrypting the data at rest. The data is encrypted before writing to the database and is decrypted before being read from it. This process happens behind the scene such that the client is unaware about the Encryption/Decryption process, hence the name ‘Transparent’.
Encryption Internals
Transparent Data Encryption is implemented by converting the plain text to a Cipher text, using an encryption algorithm. In our case, it is AES_256 and a key. The key acts as the locking mechanism. To decrypt Cipher text, the same algorithm and key must be used, which prevents spurious hackers from decrypting the Cipher as they don’t know the key used for initial encryption. Thus, the key serves the locking/unlocking mechanism of the encryption algorithm.
The overall steps involved in the implementation of TDE are given below.
- Create a Master key, which is a Symmetric Key.
- Create the Certificate, using the Master Key.
- Create Encryption Key and Use the certificate to protect the Asymmetric Encryption key.
- Alter the database to enable TDE

Create Master key
As the first step, we must create a Master key, which is a Symmetric key. It will be later used to create the certificate, which protects the Asymmetric Encryption key. We will be using the Create Master Key command to generate the Master key.
- USE master;
- GO
- CREATE MASTER KEY
- ENCRYPTION BY PASSWORD = 'password-1';

Create the Certificate
Once the Master key is in place, we will then use it to create the certificate. This certificate will finally be used to generate the Asymmetric Encryption key, which is required to encrypt the data.
- CREATE CERTIFICATE SelfSignedCert
- WITH SUBJECT = 'Self Signed Certificate';






Rayees KuniyilPosted Feb 2, 2018, 11:35 AM
Thanks for sharing....,,,,,,,,,
Former memberPosted Jun 1, 2017, 8:53 AM
In which sql server version Column Encryption will be possible?
Former memberPosted May 30, 2017, 9:07 AM
you said "Encryption has been implemented, the end user wouldn’t feel the Encryption in an action. " If user A use transparent encryption to encrypt data and if user d can see the data then what is the objective of encrypting data using transparent encryption ?
Former memberPosted May 30, 2017, 7:07 AM
Which sql server version support this kind of encryption ?
Dharmraj ThakurPosted May 30, 2017, 1:33 AM
Really helpful..........................thanks
Thiruppathi RPosted May 30, 2017, 12:29 AM
Thanks for sharing....