wuyingdu

Results 11 comments of wuyingdu

我从github上拉取了您的项目,没有改任何配置,但是一直拉取不到 io.loadkit 的jar包,在maven的本地仓库看到的jar 的后缀都是 xxx..jar.lastUpdated,根本无法使用。您可以提供 xjar和 loadkit 的jar,方便发送给我吗或者您有可靠的解决方案,楼上的修改maven的setting.xml方法无效?谢谢 邮箱 [email protected]

你好,我用您的方法,普通的java项目,这样做的确可以做到jar加密,十分感谢, 但是在做springboot项目 jar的加密时,在启动 jar,提示 ![image](https://user-images.githubusercontent.com/45226442/57525714-03d63200-735e-11e9-8027-3cf2ff794708.png) 我怀疑是springboot项目和普通java项目的jar结构不一样。 ![image](https://user-images.githubusercontent.com/45226442/57525798-46980a00-735e-11e9-98b7-02ad77a06e4f.png) ![image](https://user-images.githubusercontent.com/45226442/57525863-76471200-735e-11e9-8037-56fdb8b42a7e.png) 我也再尝试修改springboot项目的路径, (我是java开发师,c++不是很懂), 尝试着修改JarEncryptor的 ![image](https://user-images.githubusercontent.com/45226442/57526212-582de180-735f-11e9-87b9-4368a16399cf.png) 尝试着修改C++的cpp源文件 ![image](https://user-images.githubusercontent.com/45226442/57526274-8f9c8e00-735f-11e9-97e1-3f54d25a5eef.png) 也不知道是否正确,拜托您帮忙看一下,现在在cmd启动出现第一张图的错误。 我不是很了解c++,怀疑是这里的 if 中的strncmp(name, "BOOT-INF/classes/com/wyd/", 25)这行代码的问题(里面有大小写和符合 - ,与25是否匹配)。拜托您抽空看看。

> 你尝试调试一下,把java层和c++层的name和加解密结果都打印出来看看,就知道是哪里的问题了 您好,我尝试着修改了文件,并打印name。 ![image](https://user-images.githubusercontent.com/45226442/57606778-3cfbe580-759c-11e9-9035-2988581c04b0.png) ![image](https://user-images.githubusercontent.com/45226442/57606899-7c2a3680-759c-11e9-86a7-9ff5a6205895.png) ![image](https://user-images.githubusercontent.com/45226442/57607103-e216be00-759c-11e9-92fa-1dd985f84ff7.png) ![image](https://user-images.githubusercontent.com/45226442/57607199-1db18800-759d-11e9-9ec6-6eec291ccb9a.png) [我是java开发师,对c++一点都不懂,十分抱歉再次打扰到你。 您若是有时间,帮我看看这个。谢谢 [问题说明.zip](https://github.com/sea-boat/ByteCodeEncrypt/files/3172058/default.zip)

这个问题已经困扰我好几天了,我实在是看不懂c++的语法,您能帮我写稍微修改一下吗?我愿意请您喝杯咖啡,或者其它,来表示我对您帮助的一点谢意。

![image](https://user-images.githubusercontent.com/45226442/57636071-098c7b80-75db-11e9-9d8b-f7149a91e4ba.png) 是这样理解的吗?这样的话,springboot项目因为它独特的类加载器,所以这种加密方式,无法使用。

通过您提供的思路,今天尝试着将springboot jar 外层的BOOT-INF/classes尝试去除。 参考网上,使用maven的插件 maven-jar-plugin 将依赖包lib和配置文件config与源码进行分离, 成功的将springboot jar 去除外层的BOOT-INF/classes 还原成普通的 jar 项目,就是启动时,需要将lib和config与jar放在一起。 还有一个问题,加密springboot的启动类时,解密失败多次。 ![image](https://user-images.githubusercontent.com/45226442/57692414-4ad36880-7679-11e9-98af-701fa3afe363.png) 其余的controller层加解密无异常。 ![image](https://user-images.githubusercontent.com/45226442/57692552-a140a700-7679-11e9-8009-230146e31b39.png) 毕竟核心业务代码也都是在 controller,所以暂时不加密springboot启动类,换成controller层。这个需求暂时也算是过了。 我还想写篇博客,总结一下这次的经验,方便转载或者摘抄博客吗?会注明出处。 十分感谢您的帮助,方便告诉您的支付宝号或者收款码,请您喝杯咖啡聊表谢意。 如果觉得泄露隐私,可以留邮箱联系您。或者我的邮箱 [email protected]

![image](https://user-images.githubusercontent.com/45226442/58326321-102eb480-7e5f-11e9-8ec7-fc0a5bdc1964.png) ![image](https://user-images.githubusercontent.com/45226442/58326643-00fc3680-7e60-11e9-969e-9ad3e3504ea9.png) 加解密的字符位置和之前windows一样。在if判断内的。这是什么原因呢?

可以参考我写的博客:https://blog.csdn.net/weixin_39747279/article/details/90214044 博客仅实现了windows平台的springboot jar包的加密,linux版本的有异常,没有实现。 你刚才的异常,网上搜索了一下,是JDK和spring的版本冲突, jdk7对应的是spring 3.2, jdk8对应的是spring 4.2. 你可以排查一下这方面的。 ------------------ 原始邮件 ------------------ 发件人: "yushuihong"; 发送时间: 2019年5月29日(星期三) 晚上6:22 收件人: "sea-boat/ByteCodeEncrypt"; 抄送: "娃哈哈矿泉水";"Comment"; 主题: Re: [sea-boat/ByteCodeEncrypt] java段怎么通过指定agentpath,调用dll,解密class (#1) 加解密的字符位置和之前windows一样。在if判断内的。这是什么原因呢? 你成功加密的demo 可以给一个吗 或者加个联系方式QQ...

jdk版本的问题,请查看spring版本对应的jdk版本。 jar包加密推荐参考:https://github.com/core-lib/xjar ------------------ 原始邮件 ------------------ 发件人: "wheatma38"; 发送时间: 2019年8月30日(星期五) 中午1:12 收件人: "sea-boat/ByteCodeEncrypt"; 抄送: "娃哈哈矿泉水";"Comment"; 主题: Re: [sea-boat/ByteCodeEncrypt] java段怎么通过指定agentpath,调用dll,解密class (#1) 你好我按情况编写了加密解密springboot 项目 但是 在启动是报错nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to...