Re: How to handle encryption decription of connection string ?

ASP.NET

How to handle encryption decription of connection string ?


gatewaytl 10-17-2008, 3:47

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()


.Net Development | Offshore Software Development

Re: How to handle encryption decription of connection string ?


admin 10-23-2008, 16:12
<p>I'm not quite sure what you mean by this.</p>

<p>Are you saying that every time you want to retrieve the connection string you are unencrypting the section in order to retrieve it? Or that every time you want to change it you need to decrypt it?
</p>
Roger Willcocks
Software Engineer MSCD.NET
L-Space Design
http://www.l-space-design.com/
"Putting your experience to work"
© L-Space Design Limited 2005

Powered by Community Server, by Telligent Systems