防止/减缓反编译的技术
可能的重复:
最好的 Java 混淆器?
对于我的例子,我知道 eclipse 提供了一个反编译插件。我确信还有其他一些方法可以反编译程序。
我还听说反编译不是100%准确,并且结果可能相差很大(即使以相同的方式反编译相同的程序)。准确性将取决于代码的构造方式等。
可以使用哪些技术来使 java(或任何)程序更难以反编译?
Possible Duplicate:
Best Java obfuscator ?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您无法有效地使程序更难以反编译。一旦反编译,你可以让它变得更难理解,但反编译过程是确定性的。
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.
第一种技术是使用混淆器。很多人喜欢 ProGuard 因为它与 Eclipse 集成得很好并且是免费的。另请参阅 Obfuscate4e,它可与其他混淆器以及 ProGuard 配合使用。
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.
来自谷歌的第一个结果:http://proguard.sourceforge.net/
First result from google: http://proguard.sourceforge.net/
我还使用过yGuard,它似乎工作得很好。您也可以相当轻松地将它集成到 Ant 脚本中。
I've also used yGuard and it seemed to work nicely. You can integrate it into your Ant scripts fairly easily also.