Education Center, Encryption Basics

How is Encryption and Decryption done in an SQL Server?

Data encryption of a table in SQL Server is done at the column level, column by column, and utilizes symmetric encryption. The following steps detail how this process occurs within SQL Server:

  • A database master key is created
  • A self-signed certificate is created which will be protected by the database master key
  • A symmetric encryption key to be used for the column level encryption is created from the certificate
  • The table is then encrypted with the EncryptByKey function using the symmetric key and the name of the certificate

To decrypt data, the DecryptByKey function is called, which also requires the symmetric key and the name of the certificate.

Free Downloads

Datasheet of Encryption Consulting Services

Encryption Consulting is a customer focused cybersecurity firm that provides a multitude of services in all aspects of encryption for our clients.

Download
Encryption Services

About the Author

President at Encryption Consulting LLC focusing on providing consulting to customers in the Applied Cryptography space.

Let's talk