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

后端 未结 2 2071
梦谈多话
梦谈多话 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: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.

提交回复
热议问题