Techniques to prevent/slow decompiling [duplicate]
Possible Duplicate:
Best Java obfus开发者_运维问答cator ?
For my example I know that eclipse offers a decompiling plugin. And I am sure there are a few other ways out there to go about decompiling programs.
I have also heard that decompiling is not 100% accurate, and the results can vary greatly(even when decoiling same program in same way). The accuracy will depend on how the code was constructed etc.
What techniques would one use to make a java (or any) program more difficult to decompile?
You can't make the program effectively more difficult to decompile. You can make it harder to understand once it's decompiled, but the decompilation process is deterministic.
The number one technique is to use an obfuscator. Lots of people like ProGuard because it integrates nicely with Eclipse and is free. Also see Obfuscate4e, which works with other obfuscators as well as with ProGuard.
First result from google: http://proguard.sourceforge.net/
I've also used yGuard and it seemed to work nicely. You can integrate it into your Ant scripts fairly easily also.
精彩评论