title: Encrypting the connection string in web.config file in C#
body: <p>I have written the name of my database, username and password in my <code>web.config</code> file as connection string.</p>
  
  <p>I want to encrypt this data. How can I do it?</p>
  
  <pre><code>&lt;connectionStrings&gt;
    &lt;add name="ISP_ConnectionString" connectionString="Data Source=JIGAR;
               Initial Catalog=ISP;Integrated Security=True;
               User ID=jigar;Password=jigar123;
               providerName="System.Data.SqlClient" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>