简体   繁体   English

加密的App.exe.Config ConnectionString

[英]Encrypted App.exe.Config ConnectionString

将app.exe.config加密后,如何在运行时从app.exe.config获取ConnectionString?

When you are on the SAME machine and used the standard encryption methods you can access the connection string just like it has never been encrypted. 在SAME机器上并使用标准加密方法时,您可以访问连接字符串,就像从未加密过一样。

ConfigurationManager.ConnectionStrings[]...

You just can't move the config to another machine. 您只是无法将配置移动到另一台计算机。 Always encrypt on the machine where you want to decrypt it. 始终在要解密的机器上加密。

Consider the following Link with Code Sample... 考虑以下链接与代码示例...

http://www.codeproject.com/Articles/186234/Encrypt-Net-Configuration-file http://www.codeproject.com/Articles/186234/Encrypt-Net-Configuration-file

Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM