[Asp.net] Web.config 加密

 用 dotnet內建的 aspnet_regiis.exe 就可以 加密

切說路徑 cd /d c:\Windows\Microsoft.NET\Framework\v4.0.30319

裡面應該就有 aspnet_regiis.exe

連線字串∶

加密

aspnet_regiis.exe -pef connectionStrings "您的專案位置"

解密

aspnet_regiis.exe -pdf connectionStrings "您的專案位置" 


AppSetting∶

加密

aspnet_regiis.exe -pef appSettings "您的專案位置"

解密

aspnet_regiis.exe -pdf appSettings "您的專案位置" 


Identity∶

加密

aspnet_regiis.exe -pef "system.web/identity" "您的專案位置"

解密

aspnet_regiis.exe -pdf "system.web/identity" "您的專案位置" 



授與指定帳號執行iis權限 

aspnet_regiis -ga User1

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files



留言

這個網誌中的熱門文章

[MS SQL]資料庫複寫 刪除發行集 無法刪除

net use 系統發生 1219 錯誤

[Windows]密碼複雜性需求 停用密碼複雜度