可以轻松地提取 .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文件中
发布评论