How to handle encryption decription of connection string ?

gatewaytl's Avatar, Join Date: Oct 2008
Newbie Member
Hi Friends,

I have created two functions that encrypt and decrypt the connection string in web.config. But whenever I want to use connection string. I have to always decrypt web.config and then again encrypt it back. Does there any other way which i can use.

I'm using section.SectionInformation.ProtectSection(" <encryption configuration provider> ") and section.SectionInformation.UnprotectSection()
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Get the encrypted string into some variable and then decrypt that, so that you don't have to modify the web.config