Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   How to handle encryption decription of connection string ? (http://www.go4expert.com/forums/handle-encryption-decription-connection-t14554/)

gatewaytl 15Oct2008 12:13

How to handle encryption decription of connection string ?
 
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()

pradeep 15Oct2008 16:54

Re: How to handle encryption decription of connection string ?
 
Get the encrypted string into some variable and then decrypt that, so that you don't have to modify the web.config


All times are GMT +5.5. The time now is 21:00.