将源代码隐藏在.jar文件中 [英] Hiding the source code in .jar files

查看:210
本文介绍了将源代码隐藏在.jar文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以轻松地提取 .jar 文件并查看源代码。我想保护源代码不被看到。一个可能的答案是密码保护文件,就像我们这样做的zip文件。

One can easily extract the .jar file and see source code. I want to protect the source code from being seen. One possible answer is to password protect the file like we do it for zip files.

但是,如果密码已知,那么源代码可以很容易地看到。

But, if the password is known, then the source code can be easily seen.

有什么方法可以隐藏源代码,还能运行吗?与Windows中的 .exe 类似的东西。这应该在两个窗口以及Linux环境中运行。

Are there any ways of hiding the source code and still have it be able to run? Something similar to what a .exe does in Windows. This should run in both windows as well as Linux environment.

推荐答案

您要搜索的内容是java混淆。有很多工具来帮助这个,但如果想要你的代码的人真的想要的话,这是一个失败的战斗。如果这是一个严重的问题,你应该用C ++编写。

What you want to search for is "java obfuscation". There are lots of tools to help with this, but it is a losing battle if the people who want your code really want it. If this is a serious problem you should write in C++.

这篇关于将源代码隐藏在.jar文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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