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


Automatic Encryption / Decryption


Automatic Encryption / Decryption

Author
Message
patrick.fiche
patrick.fiche
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 98
Hi,
I'm using SQL Server 2005 and want to take benefit of SQL Server 2005 encryption capabililties.
I would like to crypt some sensitive data in a table.

We use to access data only through SPs which are called automatically by external programs.
I was wondering how secure it was to crypt / encrypt from a stored procedure as it seems that all Encryption functions need some kind of password.
I could encrypt the SP itself but you can find so many tools to decrypt SPs that it does not seem a very secure solution.

Does anyone has an idea on the way to secure the data in this case ? Use of CLR function or Extended SPs or anything else that I did not think about ?
I don't want the encryption to be managed by the application but only at SQL Server level...

Thanks
matt stockham
matt stockham
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2684 Visits: 3178
Depends on the situation, but if this is in-house and you aren't sending the SP out to anyone then just grant execute rights on it. If you don't want sysadmins to see the SP either then I'm not sure that it is possible.
Jack Corbett
  Jack Corbett
SSC-Forever
SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)

Group: General Forum Members
Points: 45619 Visits: 14925
I find this to be one of the failings of SQL Server encryption. My personal opinion is that you should handle encryption in the application, I know you don't want to do that, but I think it's the best place. If you are encrypting/decrypting in the database then the data is not secured between application and database.

If you really want it in the DB then I'd go with the CLR.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
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