Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using encrypted web.config file

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

like image 699
regy Avatar asked Feb 27 '26 10:02

regy


1 Answers

There's an inbuilt mechanism for doing this, please see the tutorial:

http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx

like image 146
Paddy Avatar answered Mar 02 '26 01:03

Paddy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!