asp.net 在webConfig中对某个节点加密和解密

打开计算机左下角所有程序 Microsoft Visual Studio 2012\Visual Studio Tools\vs2012兼容命令提示

加密命令:aspnet_regiis.exe -pef "connectionStrings" "C:\VisualStudio2008\Authorization"

–pef表明程序是以文件系统的形式建立的。第二个“connectionStrings”是你要加密的configuration 节点名字。第三个参数指名 web.config的物理路径。 

解密命令:aspnet_regiis.exe -pdf "connectionStrings"  "/SampleWebSite"

 

posted on 2014-10-24 13:32  黑豹小杰  阅读(208)  评论(0编辑  收藏  举报

导航