Thursday, June 16, 2005

DPAPI in Shared/Hosted Environment

My DPAPI Example

"...Actually, you can, and I use DPAPI on a number of sites in shared hosting environments.

... I use to encrypt connection strings using Carl Franklin's DPAPI helper. All I do is upload two DLLs and my ASPX to the site I'm working on, enter the connection string (or whatever), click Encrypt, and copy the output to the web.config. When I'm done, I delete the DLLs and page so no one accidentally finds them. You can find my little project at http://rjdudley.com/projects/dpapi_example.zip.

..."


This is a nice example on how to use DPAPI to encrypt your connection strings, even when hosting in a shared/hosted environment.

No comments: