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:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...