[英]Entity Framework: hidden connection strings
I have a B.dll
, I want to create APP_A
and reference B.dll
. 我有一个B.dll
,我想创建APP_A
并引用B.dll
。
B.dll
contains XXEntities
. B.dll
包含XXEntities
。 If the APP_A
needs to use B.dll
, the app.config
must add a connection string named XXEntities
. 如果APP_A
需要使用B.dll
,则app.config
必须添加一个名为XXEntities
的连接字符串。
I want to hide the connection strings in app.config
. 我想在app.config
隐藏连接字符串。
Attention : B.dll can't be changed 注意:B.dll无法更改
Best way would be to encrypt the connection string in app/web.config. 最好的方法是加密app / web.config中的连接字符串。 This is the standard way for .NET application to hide some sensitive information from the client to expose via configuration. 这是.NET应用程序从客户端隐藏一些敏感信息以通过配置公开的标准方法。
It is also machine specific encryption which will provide more security. 它也是特定于机器的加密,它将提供更高的安全性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.