web-config-encryption


Encrypt and store password in web.config file

家住魔仙堡 提交于 2019-12-10 19:16:31
问题 I have the following information in my web.config file. <appSettings> <add key="AdminUsername" value="User1"/> <add key="AdminPassword" value="Password1"/> </appSettings> how do I encrypt it and store? how do I decrypt and use? 回答1: Kindly refer to the article - http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.80%29.aspx The command is: aspnet_regiis.exe -pe "appSettings" -site "MySharePoint" -app "/" where MySharePoint is a Virtual Directory. The web.config file should be inside the

工具导航Map