简体   繁体   English

加密多个ASP.NET MVC配置文件中的连接字符串?

[英]Encrypting connection strings in multiple ASP.NET MVC configuration files?

I am working on an MVC web application which of course has multiple configuration files. 我正在使用MVC Web应用程序,该应用程序当然具有多个配置文件。 My connection string is there in a number of files. 我的连接字符串在许多文件中。

How I can encrypt connection string in all files? 如何加密所有文件中的连接字符串? Will aspnet_regiis automatically encrypt in all files or just in web.config? aspnet_regiis会自动加密所有文件还是只加密web.config?

You should check this answer I proposed, it provides some information and useful links for Encryption in configuration files. 您应该检查一下我建议的答案,它为配置文件中的加密提供了一些信息和有用的链接。

https://stackoverflow.com/a/19052327/375304 https://stackoverflow.com/a/19052327/375304

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

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