SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Advice on data encryption


Advice on data encryption

Author
Message
kwilt
kwilt
Mr or Mrs. 500
Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)Mr or Mrs. 500 (581 reputation)

Group: General Forum Members
Points: 581 Visits: 394
I've been researching options for column-level encryption. I understand the fundamentals of how to run the encryption update using EncryptByKey. These are some specific questions that I'd like to address:

1) The need to add a new varbinary column to store the encrypted data - if I'm understand this correctly, you can't run the encryption directly over the column with the sensitive data--a new varbinary column must be created and the encrypted data is stored in that column. Correct? The column I'm encrypting happens to be varchar.

2) After the encryption process, does a query over the table that pulls in just the "sensitive" column still show the unencrypted values? It did in my testing, but I'm not sure if I'm doing something wrong.

3) Does the application that uses the database need to call the encryption stored procedure in order for the column to be encrypted at the the point of inserting or updating?

4) Is it possible to use a trigger to perform the encryption?

I've read the BOL information and have done a little testing by creating the master key, certificate and symmetric keys, then used the EncryptByKey function. But I'm still a little unsure of how to make this work in a real-world scenario.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search