1.用CMD命令 cd 到 "%systemroot%/Microsoft.Net/Framework/versionNumber"
2.加密方法aspnet_regiis -pef "connectionStrings" "e:/net1"
參數"-pef"表示根據文件絕對路徑執行加密配置節:"connectionStrings"表示所加密的配置名稱:"e:/net1"表示web.config文件所
在文件夾絕對路徑.
解密方法:
aspnet_regiis -pdf "connectionStrings" "e:/net1"