Programmatically encrypting a config-file in .NET

后端 未结 5 2178
野趣味
野趣味 2020-11-29 02:56

Could somebody please do a rundown of how to programmatically encrypt a config-file in .NET, preferably in C#.

What I would like to do is do some kind of check on an

5条回答
  •  猫巷女王i
    2020-11-29 03:29

    To summarize the answers and what I've found so far, here are some good links to answer this question:

    • Encrypting Configuration Information in ASP.NET 2.0 Applications - 4GuysFromRolla.com
    • How To: Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI - MSDN

    Please feel free to complement with other links, maybe some to WinForms- or WPF-applications.

提交回复
热议问题