Click here to Skip to main content
15,888,116 members
Please Sign up or sign in to vote.
3.33/5 (3 votes)
See more:
Dear all,

I'm working on a project that i'm almost done with it but I have a little problem. I'm almost done with my C# code and till the end my client asked me to encrypt data before storing it in the database. I obviously can't redo all the project it'll be time consuming so what I thought of is to make a stored procedure or something to store data encrypted and another one to decrypt it when its read, how can I do that on SQL Server 2005?

Regards,
Posted
Comments
Sandeep Mewara 23-Apr-12 11:14am    
"I obviously can't redo all the project"
WHy would you need to redo whole project here? Just the saving and retrieving part. Is not it?

Further, even for SP, did you try anything?

1 solution

Hi,
Have you tried these posts:
http://www.4guysfromrolla.com/articles/022107-1.aspx[^]

http://msdn.microsoft.com/en-us/library/cc837966%28v=sql.100%29.aspx[^]
the second one is applied to 2005 and 2008

I hope it helps,
Cheers
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900