asp.net2.0中加密web.config
来源:互联网 发布:java基础目录 编辑:程序博客网 时间:2024/05/12 12:44
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
可以用下面的方法加密web.config里的敏感信息,比如要加密数据库连接串
aspnet_regiis -pe "connectionStrings" -app "/应用程序的名字"
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
在asp.net 2.0中,可以很方便地加密web.config文件里的敏感信息了.比如如果有权限操作服务器的话,可以用下面的方法加密web.config里的敏感信息,比如要加密数据库连接串
aspnet_regiis -pe "connectionStrings" -app "/应用程序的名字"
如果没权限的话,可以在程序里动态实现
configuration config = configuration.Getwebconfiguration(Request.ApplicationPath);
configurationSection section = config.Sections["connectionStrings"];
section.ProtectSection ("DataProtectionconfigurationProvider");
config.Update ();
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- asp.net2.0中加密web.config
- asp.net2.0用aspnet_regiis加密web.config
- ASP.NET2.0中通过web.config设置数据库连接串
- asp.net2.0中读取web.config的方法
- asp.net2.0中获取web.config中的连接字符串
- asp.net2.0中读取web.config数据库连接字符串
- 对asp.net2.0网站web.config中的数据库连接字符串加密
- 对asp.net2.0网站web.config中的数据库连接字符串加密
- 对asp.net2.0网站web.config中的数据库连接字符串加密
- 对asp.net2.0网站web.config中的数据库连接字符串加密
- 对asp.net2.0网站web.config中的数据库连接字符串加密
- 使用asp.net2.0或3.5编程加密、解密web.config中的配置信息
- asp.net 2.0中加密web.config
- asp.net 2.0中加密web.config
- .net2.0下web.config敏感数据的加密
- asp.net2.0中获得web.config中数据库连接字符串的2种方法
- asp.net 2.0中加密web.config /App.config
- asp.net 2.0中加密web.config /App.config
- 在.NET开发中灵活使用TreeView控件
- .net中发mail到hotmail中乱码问题的解决
- 立即释放.net下的com组件
- asp.net2.0下嵌套masterpage页的可视化编辑
- asp.net2.0里当readonly遇上enableviewstate=false
- asp.net2.0中加密web.config
- 关于asp.netc#中对cookie的操作
- "拒绝访问(AccessDenied)"错误的快捷诊断方法
- .NET连接到Oracle的oci.dll加载错误解决方案
- ASP.NET程序中常用的三十三种代码
- 如何在调用线程的时候传递参数
- 为Serv-U提供在线修改密码功能
- 在IIS6.0下ASP.NET的版本冲突问题
- .Net中如何操作IIS(原理篇)