How to encrypt one entry in web.config

前端 未结 3 1810
半阙折子戏
半阙折子戏 2020-11-29 18:35

ASP.NET 4

I\'ve used RSA key encryption for connection strings in web.config on my web farm. However, there\'s one more custom password entry that I\'d like to encry

3条回答
  •  失恋的感觉
    2020-11-29 19:19

    You can't encrypt a single entry - the infrastructure only allows for encryption of whole config sections.

    One option is to place the entry in its own config section and encrypt that.

提交回复
热议问题