如何保护 Java 应用程序免遭逆向工程或代码窃取? [英] How to protect a java application from reverse-engineering or code stealing?

查看:69
本文介绍了如何保护 Java 应用程序免遭逆向工程或代码窃取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向公众公开我的桌面 Java 应用程序,但我不确定如何保护它免遭逆向工程或源代码窃取?

I want to reveal my desktop java application to public, but I'm not sure how to protect it from reverse-engineering or source code stealing?

是否可以将应用程序转换为 exe 文件?如果是,那还不足以保护它吗?

Is it possible to convert the application to an exe file? and if it is, wouldn't that be enough to protect it?

推荐答案

您可以使用 Java Obfuscator,例如 ProGuard.

You can use a Java Obfuscator such as ProGuard.

ProGuard 是一个免费的 Java 类文件压缩器、优化器、混淆器和预验证器.它检测并删除未使用的类、字段、方法和属性.它优化字节码并删除未使用的指令.它使用无意义的简短名称重命名剩余的类、字段和方法.最后,它对 Java 6 或 Java Micro Edition 的处理代码进行预验证.

ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it preverifies the processed code for Java 6 or for Java Micro Edition.

这篇关于如何保护 Java 应用程序免遭逆向工程或代码窃取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆