all groups > asp.net security > july 2006 >
You're in the

asp.net security

group:

Encrypt and Decrypt ConnectionString inside web.config...



Encrypt and Decrypt ConnectionString inside web.config... den 2005
7/24/2006 7:44:02 PM
asp.net security: Hi everybody,

How exactly do you Encrypt and Decrypt, using Cryptography,
ConnectionString inside web.config programmatically in .Net Framework 1.0 and
1.1?
Please provide codes. Thanks.

den2005
--
Re: Encrypt and Decrypt ConnectionString inside web.config... den 2005
7/24/2006 11:35:02 PM
Thanks for info, Dominic, but I know there is a DPAPI but right now trying
other approach.

Dennis
--
MCP Year 2005, Philippines


[quoted text, click to view]
Re: Encrypt and Decrypt ConnectionString inside web.config... Dominick Baier
7/25/2006 12:00:00 AM
aha - which approach??

why?

dominick

[quoted text, click to view]

Re: Encrypt and Decrypt ConnectionString inside web.config... Dominick Baier
7/25/2006 12:00:00 AM
you can use DPAPI for that -

find a wrapper here:

http://www.leastprivilege.com/DPAPITools.aspx


[quoted text, click to view]

Re: Encrypt and Decrypt ConnectionString inside web.config... den 2005
7/25/2006 10:45:01 PM
Hi Dominick

Approach I am doing is using descryptoserviceprovider to encrypt and decrypt
it, having problem in decrypt it back, implementing key and IV data to make
it uniform, but unable to use stored the dll library object in Session
variable, and need to do write these data in a file...that is approach I am
doing now, after this try using DPAPI. I have not seen the downloaded file
from link you provided, it is in detail how to use it for encryption and
decryption of web.config connection string?

Thanks

Dennis
--
MCP Year 2005, Philippines


[quoted text, click to view]
AddThis Social Bookmark Button