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.NET\Framework\v2.0.50727
aspnet_regiis -pef "connectionStrings" ShopWeb -prov "RsaProtectedConfigurationProvider"
aspnet_regiis -pef "connectionStrings" ManagerWeb -prov "RsaProtectedConfigurationProvider"
@PAUSE
解密批处理:
echo off
PATH %PATH%;%SystemRoot%\\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis -pdf "connectionStrings" ShopWeb
aspnet_regiis -pdf "connectionStrings" ManagerWeb
@PAUSE
ShopWeb和ShopWeb是当前目录下的一个子目录。