using an encrypted web.config file

Posted by regy on Stack Overflow See other posts from Stack Overflow or by regy
Published on 2010-06-18T09:57:28Z Indexed on 2010/06/18 10:03 UTC
Read the original article Hit count: 123

Filed under:

My aim is to make the web.config not readable by external users, but my application should be able to access it. Is there any way to do this???

I have tried the following way, but how to set the application to use string instead of web.config???

I want to encrypt my web.config file so that others do not open the file using any editor like notepad. But my application should be able to use the same web.config file. I could encrypt the web.config file and decrypt it inside the application and I saved the entire web.config to a string file. Now I want to use this string variable instead of web.config(now in encrypted form, which cannot be accessed by the application).

© Stack Overflow or respective owner

Related posts about ASP.NET