混淆了嵌入了其他Jar文件的Jar文件 [英] Obfuscating Jar files with other Jar files embedded
问题描述
因此,我们有一个带有Java应用程序的Jar文件,里面有它所依赖的库的jar文件,jdbc或任何其他第三方jar。
So figure we have a Jar file with our Java application, and it has inside of it the Jar files for the libraries it depends of, a the jdbc or any other third party jar.
如何使用免费软件对其进行模糊处理?我的意思是,混淆你的代码并保持Jars不变。
How do you proceed to obfuscate it with free software? I mean, obfuscate your code and leave the Jars untouched.
我试过 Proguard ,无济于事。即便是作者在sourceforge论坛告诉我也不可能。
I tried with Proguard, to no avail. Even the author told me at the sourceforge forums it wasn't possible.
但你可以手动完成一个丑陋的黑客攻击,将jar重命名为zip和mangling有了内部数据,那么,为什么软件无法做到呢?
But you can do it manually with an ugly hack involving the renaming of the jar to zip and mangling with the inner data, so, why wouldn't a software be able to do it?
推荐答案
你可以创建一个jar来自使用 Jar Jar Links 的多个罐子。
然后使用 ProGuard 处理结果。
You can create a single jar from multiple jars using Jar Jar Links. Then you process the result with ProGuard.
这篇关于混淆了嵌入了其他Jar文件的Jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!