2013年6月19日

.Net 对webconfig进行加密解密

摘要: 加密: // 打开该应用程序中的配置文件 Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath); //在打开的配置文件中找到指定的节 ConfigurationSection section = config.GetSection("connectionStrings"); if (section != null && !section.SectionInformation.IsProtected) { section.Sect 阅读全文

posted @ 2013-06-19 02:35 大黑脸 阅读(341) 评论(0) 推荐(0) 编辑

导航