将源代码隐藏在.jar文件中

编程入门 行业动态 更新时间:2024-10-24 20:14:32
本文介绍了将源代码隐藏在.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文件中

本文发布于:2023-11-16 19:53:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607235.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:源代码   文件   jar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!