如何加密的ConnectionString写入在codebehind的web.config? [英] How to encrypt Connectionstring written in web.config from codebehind?

查看:129
本文介绍了如何加密的ConnectionString写入在codebehind的web.config?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从后面code web.config中加密的ConnectionString有的AppSettings的关键价值。

I need to encrypt connectionstring and some appsettings keys value in web.config from code behind.

请帮忙。

推荐答案

检查这些URL - 使用ASPNET_REGIIS.EXE http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx

Check these url - use aspnet_regiis.exe http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx

<一个href="http://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.protectsection.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.protectsection.aspx

这篇关于如何加密的ConnectionString写入在codebehind的web.config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆