sm-crypto icon indicating copy to clipboard operation
sm-crypto copied to clipboard

miniprogram sm crypto library

Results 11 sm-crypto issues
Sort by recently updated
recently updated
newest added

请问为什么key为16位字符串时报非法? 在线加/解密工具(https://the-x.cn/cryptography/Sm4.aspx)可以为16位字符串。 ![image](https://user-images.githubusercontent.com/47238896/178668571-5926b48c-f101-45ad-b8e0-4349a1c068dc.png)

目前支持了sm4-cbc模式,希望能支持sm4-gcm模式

VM4048 WAService.js:2 TypeError: Cannot read property 'join' of null.报错。不知道是什么问题

您好请问可以在vue的后台项目中使用吗?

C1 should be uncompressed public key format which cause encryption and decryption may not compatible with other languages

生成了基于sm2的秘钥后,是否实现了秘钥交换的算法?

let keypair = sm2.generateKeyPairHex(); let publicKey = keypair.publicKey; // 公钥 let privateKey = keypair.privateKey; // 私钥 const cipherMode = 0; // 1 - C1C3C2,0 - C1C2C3,默认为1 let buf = Buffer.alloc(1);...

key=1111111111111111 iv=1111111111111111 加密内容原文:123 加密后结果:Yv5pzHfZHZLaWRFv/EcKvQ== 后端和在线sm4解密工具都可以。 前端在小程序中就无法解密,打印到控制台为空; 小程序传iv和key的时候已经将key和iv转换为16进制串了,代码如下: key和iv字符转位16进制串:1111111111111111 31313131313131313131313131313131 ![image](https://github.com/wechat-miniprogram/sm-crypto/assets/22101159/b7db96fd-e6b5-4326-a694-6562a925e133)