自动加密web.config配置节批处理

2022-07-04 10:12:55 浏览数 (1)

关于如何加密配置信息: http://blog.joycode.com/ghj/archive/2006/02/12/71378.aspx

  • http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx
  • http://blogs.msdn.com/federaldev/archive/2005/11/08/490319.aspx
  • http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx
  • http://aspdot.net/articles/encryptedconnstring/
  • http://davidhayden.com/blog/dave/archive/2005/11/17/2572.aspx
  • http://weblogs.asp.net/owscott/archive/2005/07/29/421063.aspx

加密批处理: echo off  PATH %PATH%;%SystemRoot%Microsoft.NETFrameworkv2.0.50727 aspnet_regiis -pef “connectionStrings” ShopWeb -prov “RsaProtectedConfigurationProvider” aspnet_regiis -pef “connectionStrings” ManagerWeb -prov “RsaProtectedConfigurationProvider” @PAUSE

解密批处理: echo off  PATH %PATH%;%SystemRoot%\Microsoft.NETFrameworkv2.0.50727 aspnet_regiis -pdf “connectionStrings” ShopWeb aspnet_regiis -pdf “connectionStrings” ManagerWeb @PAUSE

ShopWeb和ShopWeb是当前目录下的一个子目录。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/111153.html原文链接:https://javaforall.cn

0 人点赞