首页 > 代码库 > aspnet_regiis 加密/解密 web.config

aspnet_regiis 加密/解密 web.config

加密:

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

解密:

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