classfinal,防反編譯
添加maven插件
<plugin> <!-- https://gitee.com/roseboy/classfinal --> <groupId>net.roseboy</groupId> <artifactId>classfinal-maven-plugin</artifactId> <version>1.2.1</version> <configuration> <password>#</password><!--加密打包之后pom.xml會被刪除,不用擔心在jar包里找到此密碼--> <packages>a00,a002</packages> <cfgfiles>application.yml</cfgfiles> <excludes>org.spring</excludes> <libjars>a.jar,b.jar</libjars> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>classFinal</goal> </goals> </execution> </executions> </plugin>
正常編譯打包,加密后的方法體反編譯出來都是空的
啟動方式 java -javaagent:xxx.jar -jar xxx.jar 無密碼無機器碼使用,其他方式可自行查資料
classfinal,防反編譯,代碼加密 ,代碼安全

浙公網安備 33010602011771號