ConnectionStrings in app.config. What about security?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 21:04:48

You can encrypt parts of the app.config or web.config file, see for example this post for more information.

Specifically, this MSDN article walks through various ways of securing connection strings.

You should use Integrated authentication, and having the AppPool user authenticated on the SQL with just what he needs to execute.

with that, you do not need to provide the password in the config, and the connection uses the app pool user to authenticate against the sql server.

therefore you have the highest security.

Also, which version of IIS are you running? Is this shared hosting? Or do you have administrator access to IIS? If so, go check out your IIS ASP.NET settings in IIS Manager. You can specify ConnectionStrings.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!