Web.config文件的加密方法

来源:互联网 发布:oracle 分布式数据库 编辑:程序博客网 时间:2024/05/16 10:22

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" 

原创粉丝点击