首页 > 新闻系统 > 编程天地 > 文章正文

关于.net2.0中Webconfig中连接串加密

2008-01-25 11:43:57 来源:互联网 作者:邀月博客 点击:
ASP.NET 2.0 现在允许您对配置文件的单个节进行加密,这样,几乎不可能使用文本编辑器来读取这些配置节。

  
  对应配置文件如下:
   <? xml version="1.0" encoding="utf-8" ?>
< configuration >
< configProtectedData />
< appSettings >
< add key ="currencyService" value ="http://www.microsoft.com/services/currencyService.asmx" />
< add key ="creditCardValidationService" value ="http://www.microsoft.com/services/cc.asmx" />
</ appSettings >
</ configuration >
  效果如图

  

 

  

   <? xml version="1.0" encoding="utf-8" ?>
< configuration >
< configProtectedData />
< appSettings >
< add key ="currencyService" value ="http://www.microsoft.com/services/currencyService.asmx" />
< add key ="creditCardValidationService" value ="http://www.microsoft.com/services/cc.asmx" />
</ appSettings >
</ configuration >
  效果如图

  

 

  

9 7 3 1 2 4 8 :

精彩推荐
焦点大图推荐
本类热门文章

论坛美图

本周软件下载排行

广告联系 | 版权说明 | 意见建议 | 加入收藏 | 军网站群 [ 军软件园 - 军软件商城 - 军软件园论坛 ]

电信与信息服务业务经营许可证:京ICP证050203