Encrypting appSettings in web.config

前端 未结 4 1650
夕颜
夕颜 2020-11-28 10:19

I am developing a web app which requires a username and password to be stored in the web.Config, it also refers to some URLs which will be requested by the web app itself an

4条回答
  •  一生所求
    2020-11-28 10:43

    • Encrypting and Decrypting Configuration Sections (ASP.NET) on MSDN
    • Encrypting Web.Config Values in ASP.NET 2.0 on ScottGu's blog
    • Encrypting Custom Configuration Sections on K. Scott Allen's blog

    EDIT:
    If you can't use asp utility, you can encrypt config file using SectionInformation.ProtectSection method.

    Sample on codeproject:

    Encryption of Connection Strings inside the Web.config in ASP.Net 2.0

提交回复
热议问题