How to encrypt connection string in WinForms 1.1 app.config?

后端 未结 2 2070
梦谈多话
梦谈多话 2021-01-22 17:34

Just looking for the first step basic solution here that keeps the honest people out.

Thanks, Mike

相关标签:
2条回答
  • 2021-01-22 18:30

    This might help you along the way:

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

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

    The articles are aimed at ASP.NET but the principles are the same.

    0 讨论(0)
  • 2021-01-22 18:41

    The second piece of the puzzle is detecting an unencrypted connection string, encrypting it, and writing it back out to the config file. Writing to config files located in your exe dir is generally a very bad idea, but can be very useful during development. The pros and cons are very well described here. Be sure to read all the comments.

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