jar包代码非常重要,我们需要保护好我们的知识产权,所以加密就成了一门很重要的技术,下面先说一个开源的(开源的大家都懂,不是很安全)
xjar开源免费,所以尝试了一下
以下是github地址
https://github.com/core-lib/xjar
首先项目引入依赖
注意,如果想xjar在test类进行加密,就需要 <scope>test</scope>
<!--注入xjar加密jar包-->
<dependency>
<groupId>com.github.core-lib</groupId>
<artifactId>xjar</artifactId>
<version>4.0.2</version>
<scope>test</scope>
</dependency>
<!--需要的一个通道加载器-->
<dependency>
<groupId>com.github.core-lib</groupId>
<artifactId>loadkit</artifactId>
<version>1.0.1</version>
</dependency>
如果是maven有可能下载失败这时候需要手动去maven仓库下载jar包然后我们安装上maven仓库
maven 仓库地址 https://mvnrepository.com/search?q
2万+


&spm=1001.2101.3001.11974&articleId=125007734&d=1&t=3&u=ccee5ef75cf8441c99f02783841fd914)

被折叠的 条评论
为什么被折叠?



