protect (encrypt) password in the web.config file (asp.net)
<pre><code> &lt;system.net&gt;
  &lt;mailSettings&gt;
   &lt;smtp from="email@domain.com" deliveryMethod="Network"&gt;
    &lt;network clientDomain="www.domain.com" host="smtp.live.com" defaultCredentials="false" port="25" userName=" email@domain.com " password="password" enableSsl="true" /&gt;
   &lt;/smtp&gt;
  &lt;/mailSettings&gt;
 &lt;/system.net&gt;
</code></pre>

<p>This is the case where I need encryption for my password. I searched and googled much on the web but I can’t be able to encrypt anymore. </p>

<p>Can anyone help me do this in a simple but secure way.</p>
