How can I safely store and access connection string details?

前端 未结 5 1516
情话喂你
情话喂你 2021-02-06 00:51

I\'m currently working on a ASP.NET MVC web site, and I\'ve come up to a point where I need to integrate a database into the website.

Normally I would simply add the app

5条回答
  •  一整个雨季
    2021-02-06 01:45

    Common approaches include encrypting the web.config and storing the connection strings in the registry.

    The second link is a part of a much larger article covering how to properly secure an ASP.NET application. It was written for WebForms, but the principles are the same. It's a good read and much of it still applies today, even if it is a bit old.

提交回复
热议问题