在app.config中加密的连接字符串 [英] Encrypt connection string in app.config

查看:139
本文介绍了在app.config中加密的连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在加密App.config中的连接字符串。我有code,以保护app.config中的connectionStrings节,但密码仍然显示为纯文本。

I am having trouble encrypting a connection string in app.config. I have code that will protect the connectionStrings section of app.config, but the password is still displayed in plain text.

我需要在这样展开时,它不是以纯文本到连接字符串进行加密。我看到那么对于web.config文件similiar问题,但不是的app.config。

I need to encrypt the connection string in so it is not in plain text when deployed. I see similiar questions on SO for web.config, but not app.config.

推荐答案

在看一看<一个href=\"http://www.$c$cproject.com/Articles/18209/Encrypting-the-app-config-File-for-Windows-Forms-A\">This文章,它有一些非常有用的例子。你基本上是在寻找 System.Configuration.SectionInformation.ProtectSection 来帮助你在这里。

Have a look at This Article it has some very useful examples. You're basically looking for System.Configuration.SectionInformation.ProtectSection to help you out here.

也有在偷看<一个href=\"http://www.$c$cproject.com/Articles/15392/Implementing-Protected-Configuration-With-Windows\">Implementing受保护的配置

这篇关于在app.config中加密的连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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