發表文章

目前顯示的是 1月, 2023的文章

[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