问题
I'm currently developing an application where it's rather crucial to keep the user from decompiling the code. Now, I'm aware of the fact that most .exes are decompilable if executed by an experienced programmer. However, my goal is simply to keep it safe from the "regular" user with basic programming knowledge.
I've come across several obfuscators, and the one I'm using right now is Codeplex Confuser, which you can find here. Since I'm no obfuscation guru, or that experienced within programming of any high level, I'm asking you if you know anything about the safety of this obfuscator.
回答1:
From my experience Confuser is one of the hardest (free) obfuscators to reverse at this moment. At least by 1-click tools.
Personally I had a few issues with it, namely, a few false positives when using max settings and a few cases that made my .exe's unable to run.
Keep in mind that regardless if it's a bit harder to reverse than other free alternatives it's still very possible for someone to do so if he devotes a bit of time.
回答2:
Using an obfuscator will make it a lot harder to decompile the code, but it's still not safe.
The only way to keep your code safe is to keep it out of the hands of the users. You can put critical code in a web service, and let the application call it. Unless the user can actually hack the server and get to the code, it's completely safe from decompiling.
来源:https://stackoverflow.com/questions/12151308/confuser-net-obfuscator-is-it-safe