aspnet_regiis 加密/解密 web.config

加密:

@echo off
echo web.config
c:
cd c:\windows\Microsoft.NET\Framework64\v4.0.30319 aspnet_regiis -pe "appSettings" -app "/XXX"
aspnet_regiis -pe "connectionString" -app "/XXX"
aspnet_regiis -pe "system.web/identity" -app "/XXX" pause

解密:

@echo off
echo web.config
c:
cd c:\windows\Microsoft.NET\Framework64\v4.0.30319 aspnet_regiis -pd "appSettings" -app "/XXX"
aspnet_regiis -pd "connectionString" -app "/XXX"
aspnet_regiis -pd "system.web/identity" -app "/XXX" pause
上一篇:CSAPP大作业


下一篇:熔断器-Hystrix。。。之降级方法