Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS端和Java端互相不能解密 #7

Open
zhanglinfeng opened this issue Sep 28, 2018 · 5 comments
Open

iOS端和Java端互相不能解密 #7

zhanglinfeng opened this issue Sep 28, 2018 · 5 comments

Comments

@zhanglinfeng
Copy link

zhanglinfeng commented Sep 28, 2018

自己加密的自己能解,但Java加密的,iOS不能解,iOS加密的Java不能解,大神帮忙分析下下么原因啊,曲线双方是一样的。Java的公钥多了2位,前面多了04,请问如何解Java加密的密文呢

@debugviewer
Copy link

自己加密的自己能解,但Java加密的,iOS不能解,iOS加密的Java不能解,大神帮忙分析下下么原因啊,曲线双方是一样的。Java的公钥多了2位,前面多了04,请问如何解Java加密的密文呢

排查一下看是不是字符编码问题?

@iosYangChuan
Copy link

您好,我也遇到这个问题了? 编码都正确的, 位数不去掉前面的04和后台匹配,但是不能正常解密。去掉了之后位数又和后台对应不上。 又点头大。有没有java 配套的,能正常完成加密、解密的包?麻烦博主抽时间看看这个问题呢?https://github.com/looly/hutool/tree/v4-master/hutool-crypto/src

@iosYangChuan
Copy link

上面的连接是我们用到的java连接

@zhuxinleibandou
Copy link

请问解决了吗

@iosYangChuan
Copy link

iosYangChuan commented Sep 30, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants