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":要加密的虚拟路径

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-05-15
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-28
猜你喜欢
  • 2022-01-01
  • 2021-12-13
  • 2021-07-10
  • 2022-03-07
相关资源
相似解决方案