Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net Encrypting Database Tables

I am delivering a module for a website that will collect information from a user and make appropriate calculations. The client wants any data collected from the user to be encrypted. We are using SQL express 2005 as the database.

Thanks in advance.

like image 436
Burt Avatar asked Feb 27 '23 20:02

Burt


2 Answers

SQL Server already supports strong encryption for columns, why not just use that?

like image 57
Alex K. Avatar answered Mar 03 '23 00:03

Alex K.


Use Transparent Database Encryption because, as the name implies, is transparent for the application and requires absolutely 0 changes. You simply turn on encryption with a one-key-turn: ALTER DATABASE ... SET ENCRYPTION ON;. Key management is the simplest possible key management you can get, and the database is protected against accidental loss of media. The encryption carries over to all backups taken, so accidental loss of a backup file will also protect the content.

like image 32
Remus Rusanu Avatar answered Mar 02 '23 23:03

Remus Rusanu