是否有一个java混淆器可以混淆方法体但保留方法名称不变?
我想要的是混淆我的 java 文件,但希望保持类名和方法名不变。有没有java混淆器提供这样的功能?
我尝试过 proguard gui obfuscator 但无法得到我想要的。
What I want is to obfuscate my java file but want to keep the class name and method name as it is. Is there any java obfuscator which provides such functionality?
I have tried pro guard gui obfuscator but can't get what I want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
ProGuard 可以做你所描述的事情。如果您不希望它重命名类和方法:
如果您根本不希望它重命名、删除或优化任何入口点(例如合并类、内联短方法、内联常量字段、删除未使用的参数等) .):
此时,将没有太多空间来优化或混淆方法体,因此您可能需要评估这是否真的是您想要的。
ProGuard can do what you describe. If you don't want it to rename classes and methods:
If you don't want it to rename, remove, or optimize any entry points at all (e.g. merge classes, inline short methods, inline constant fields, remove unused parameters, etc.):
At that point, there won't be much room left to optimize or obfuscate the method bodies, so you may want to evaluate if this is really what you want.
请参阅 Allatori。它允许您指定不想重命名的名称。
要进行扩展,您可以使用配置文件指定要保留的名称。
上面的代码片段展示了如何省略名称混淆。此特定示例忽略具有私有访问权限或更高级别的类、字段和方法类型(即所有类、字段和方法类型)。
See Allatori. It allows you to specify which names you don't want renamed.
To expand, you would specify the names you want to keep using a configuration file.
The above snippet shows how you can omit name obfuscation. This particular example ignores class, field and method types that have private access or above (i.e. all class, field and method types).
看看 Zelix KlassMaster。
Take a look at Zelix KlassMaster.
请参阅我们的 Java 混淆器。您可以告诉它哪些标识符必须保留在混淆的程序中。
See our Java Obfuscator. You can tell it which identifiers must be preserved in the obfuscated program.
我工作的公司长期以来一直生产一个名为 dashO 的 java 混淆器,它可以做到只是这个。因此,如果您愿意,请将其添加到评估列表中进行尝试:)
The company I work for has long produced a java obfuscator called dashO that can do just this. So add that to the list of evals to try out if you're so inclined :)