I have to put a password in my web.config and i need to encrypt it and use in my code, is there some tip to how to do this?
Code of my web.config:
<appSettings>
<add key="Password" value="test123"/>
</appSettings>
How im getting it:
string Password = ConfigurationManager.AppSettings["Password"];
Thanks!
Check out this MSDN article on Encrypting and Decrypting Configuration Sections