title: asp.net mvc 3 web.config connection string encryption
body: <p>I have to deploy an asp.net mvc 3 website and its web.config contains database credentials. </p>
  
  <p>After searching for a while, I found that one could place the connection string in a .cs file in App_Data folder, but if database password is changed, then the site needs to be recompiled.</p>
  
  <p>Also I got to this link:<a href="http://msdn.microsoft.com/en-us/library/ms998283" rel="nofollow"> Encrypt Configuration Sections in ASP.NET 2.0 Using RSA</a> , but the page says that the content is not retired.</p>
  
  <p>Can someone please tell the updated practices to encrypt the connection string information in the web.config file.</p>
  
  <p>Thanks.</p>