Re: Encrypting data in SQL 2005




"Jim Youmans" <jdyoumans@xxxxxxxxx> wrote in message
news:1147976240.393623.190210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The application is a web app for checking on personal information
(think www.citibank.com). The app would need to decrypt private data
(like ssn or CC# or whatever) for display to the user. The user would
not have access (or knowledge) of the encryption method or anything
else.

Am I going down the wrong track here? Maybe I need to look at this
from a different angle?



You can store the password in your application's configuration. Then secure
that using the OS.

There is specific tooling to make this easy in asp.net 2.0 applications.

How To: Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000005.asp


How To: Encrypt Configuration Sections in ASP.NET 2.0 Using RSA
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000006.asp

Otherwise you need to use the crypto API stuff to put the password (or a key
to encrypt it) in the OS secure store.

David


.