Web.config文件的加密方法

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" 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章