Hide password on desktop application code

橙三吉。 提交于 2019-12-12 01:28:31

问题


I have a desktop application developed in C#.NET, with an encrypted database. The encryption password is hard coded in the application code.

How can I hide this password, since the code can be accessed through a .net disassembler?

Maybe obfuscate the code could be a solution, but how do I create a setup for the application with the obfuscated code, because every time I rebuild the setup, a brand new .exe is created and the code is never obfuscated.

I hope someone knows how to get around this.


回答1:


My suggestion is to not do this and here's why: SCADA




回答2:


You definitely want to look into some for of encryption, some professional obfuscators will encrypt string information in an assembly as well.



来源:https://stackoverflow.com/questions/3425908/hide-password-on-desktop-application-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!