Entity framework 实体框架加密连接字符串

Entity framework 实体框架加密连接字符串,entity-framework,encryption,Entity Framework,Encryption,我使用实体框架和Linq转换实体。我想加密连接字符串,EF必须自动解密,我怎么做 提前感谢, 哈维尔·德豪尔赫(Javier p.de Jorge)使用aspnet_regiis。在命令行中浏览到(通常): 和类型: aspnet_regiis -pef "sectionName of web.config" "path" - to encrypt aspnet_regiis -pdf "sectionName of web.config" "path" - to decrypt 例如: as

我使用实体框架和Linq转换实体。我想加密连接字符串,EF必须自动解密,我怎么做

提前感谢,


哈维尔·德豪尔赫(Javier p.de Jorge)

使用aspnet_regiis。在命令行中浏览到(通常):

和类型:

aspnet_regiis -pef "sectionName of web.config" "path" - to encrypt
aspnet_regiis -pdf "sectionName of web.config" "path" - to decrypt
例如:

aspnet_regiis -pef "connectionStrings" "D:\projects\HelloWorldProject"

无需执行任何操作即可使L2SQL读取加密连接字符串文件。

这是一个web应用程序吗?ASP.NET有内置的Web.CONFIG加密。是的,但是如何做到这一点,或者所有的都是自动的,即使是在Endo.NET Web.CONFIG加密中,EF也不会关心。
aspnet_regiis -pef "connectionStrings" "D:\projects\HelloWorldProject"