开发者

Techniques to prevent/slow decompiling [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜