【整理】asp.net web.config加解密

asp.net中对web.config配置文件进行加密方法

aspnet_regiis -pe "connectionStrings" -app "/zwf" -prov RsaProtectedConfigurationProvider

其中-pe:对配置节进行解密

"connectionStrings":要加密的配置节

-app:虚拟路径

"/zwf":要加密的虚拟路径

[-prov provider] 使用此提供程序进行加密

RsaProtectedConfigurationProvider:指加密的提供程序

asp.net中对web.config配置文件进行解密方法

aspnet_regiis -pd "connectionStrings" -app "/zwf"

其中-pd:对配置节进行解密

"connectionStrings":要解密的配置节

-app:虚拟路径

"/zwf":要加密的虚拟路径

原文地址:https://www.cnblogs.com/zwffff/p/1431478.html