I have encrypted the "web.config" file of my MVC3 web application with aspnet_regiis.exe.
BUT if someone has physical access to the "web.config", he probably has access to cshtml files too. So he can inject, for example a code like this:
<label>@ConfigurationManager.AppSettings["dbconnection"].ToString()</label>
and thus compromising security in my application. Are there any suggestions how can I solve this problem ?