悟道人生

渴望闲云野鹤的生活,面对自然,鸟鸣虫唱,星辰为伴,没有拘束,没有苦恼,有的只是神仙般的生活

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

asp.net中对web.config配置文件进行加密方法

aspnet_regiis -pe "connectionStrings" -app "/zwf" -prov RsaProtectedConfigurationProvider

其中-pe:对配置节进行解密

"connectionStrings":要加密的配置节

-app:虚拟路径

"/zwf":要加密的虚拟路径

[-prov provider] 使用此提供程序进行加密

RsaProtectedConfigurationProvider:指加密的提供程序

 

asp.net中对web.config配置文件进行解密方法

aspnet_regiis -pd "connectionStrings" -app "/zwf"

其中-pd:对配置节进行解密

"connectionStrings":要解密的配置节

-app:虚拟路径

"/zwf":要加密的虚拟路径

posted on 2009-04-08 10:13  凌风有约  阅读(437)  评论(0编辑  收藏  举报