Programmatically encrypting a config-file in .NET

后端 未结 5 2006
野趣味
野趣味 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条回答
  • 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.

    0 讨论(0)
  • 2020-11-29 03:32

    @TK: a hashing algo can only be 'guessed', not reverse engineered. One can only reconstruct the input to a hash value by completely guessing the input (apart from collisions, that is) This can be done by a rainbow crack for example (see an implementation of a rainbow cracker here)

    I would say that a 3rd party encryption tool is not safer than the .NET framework encryption algorithms, these libraries just help you doing your job faster

    0 讨论(0)
  • 2020-11-29 03:34

    The solution at below site working fine for me.

    http://www.a2zmenu.com/Blogs/CSharp/How-to-encrypt-configuration-file.aspx

    0 讨论(0)
  • 2020-11-29 03:38

    I haven't used it myself, but the Microsoft Enterprise library has good encryption support that will possibly suit your needs:

    http://msdn.microsoft.com/en-us/library/cc309503.aspx

    0 讨论(0)
  • 2020-11-29 03:40

    There is a good article from 4 guys about Encrypting Configuration Information in ASP.NET 2.0 Applications

    Hope this helps

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