Asp.net ConnectionString in secure way

前端 未结 7 638
离开以前
离开以前 2020-12-20 06:24

I could not get a satisfactory answer to my question on the google, they are:

  • How secure ConnectionString is over the HttpRequest?
  • Is using Connection
相关标签:
7条回答
  • 2020-12-20 07:25

    How secure ConnectionString is over the HttpRequest?

    It is a string. It is only as secure as the connection is, so, normally not at all. This is assuming you are sending the connection string details over a HttpRequest. If this is not the case and your connection string is used in the web.config, it is as safe as the file itself and IIS are.

    Is using ConnectionString in web.config file more secure than using in any specific aspx page?

    No.

    And how to secure ConnectionString for highly secure website?

    Normally, one uses integrated security (windows authentication) to avoid hard coding of a username and password. Additionally, you can encrypt the configuration section, as described here (RSA) and here (DPAPI).

    0 讨论(0)
提交回复
热议问题