当前位置: 动力学知识库 > 问答 > 编程问答 >

security - Making Web config connection strings more generic

问题描述:

I need to deploy my MVC (Web api2.0) applications into QA then after passing, into production. My apps access several SQL databases. I cannot set security=integrated in either QA or Production so I set it to False but need to include the UID and Passwords in the web config files. I know I am missing something here but how can I make process more secure and more generic so that I do not need to recompile between Dev - QA - Production and do not need to place the credentials in the web config?

网友答案:

Encrypt them, copy the encryption results in your config, then decrypt. Here's one way to do that:

Encrypt and decrypt a string

分享给朋友:
您可能感兴趣的文章:
随机阅读: