-
Notifications
You must be signed in to change notification settings - Fork 87
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
SM2加密后是30开头的,但是后台需要04开头的 这个可以转换么 #78
Comments
将密文 ASN1 解码即可,查看 Readme 文档或 Demo 示例。
|
04 代表非压缩格式,解码出来默认不带 04,后端需要,手动拼接加上 04 即可。 |
这个解出来和后台的的对不上 |
加密后公钥: |
初始公钥: ==> 公钥 加密后公钥:==> 加密密文 解密后公钥: ==> 结果 |
解密后公钥: ==> 结果 这两个是密文解密后预期结果 |
|
好的,谢谢 |
No description provided.
The text was updated successfully, but these errors were encountered: