This repository has been archived by the owner on Apr 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
老铁,还得麻烦看看,uniapp公钥加密,服务端[php]对应私钥解密,无法解密 #7
Comments
一般来说加解密没通过的原因都是:
根据以上几个原因分析:
|
|
OpenSSL 使用私钥加密时只支持:
排除不安全的 NO_PADDING, 私钥加密都是使用 PKCS1_PADDING |
@zd520ll 老铁问题解决了吗? |
已解决,谢谢 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
uniapp端使用私钥加密,服务端[php]使用对应公钥解密,正常
服务端[php]使用私钥加密,uniapp端公钥钥解密,也正常
但是如果:
uniapp端使用公钥加密,服务端[php]使用对应私钥解密,无法解密
服务端[php]使用公钥加密,uniapp端使用私钥解密,也无法解密
这是我服务端的代码
也就是说换一下,就不行了,
但是在各自,自己加密,然后自己解密是可以的。
确定是测试过很多次的,就是不行,换成,私钥加密,公钥解密相互都是可以的,😰,麻烦老哥给看看
是不是编码什么的问题?
The text was updated successfully, but these errors were encountered: