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

国密算法 ts 版

Results 16 sm-crypto-v2 issues
Sort by recently updated
recently updated
newest added

17:32:26.222 Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported for code-splitting builds.

sm2加密在浏览器中运行正常,在NodeJS中运行报错: > throw new Error("random number pool is not ready or insufficient, prevent getting too long random values or too often."); 已复现: 1、发现是“async function initRNGPool() {” 初始化中用了异步,而我的方法调用时,一些初始化还没完成。 2、setTimeout延迟执行一下,就OK了

加密后保存成文件是源文件的两倍

sm2加密在浏览器中运行正常,在NodeJS中运行报错: > throw new Error("random number pool is not ready or insufficient, prevent getting too long random values or too often."); 已复现: 1、发现是“async function initRNGPool() {” 初始化中用了异步,而我的方法调用时,一些初始化还没完成。 2、setTimeout延迟执行一下,就OK了

![image](https://github.com/user-attachments/assets/da310955-8ad3-4ad0-a9bc-c9193dcca928) 无法正确识别输出的是字符串类型

我们这边有用到 asn1 编码, sm-crypto 那边 sm2 好像不支持

![image](https://github.com/Cubelrti/sm-crypto-v2/assets/24381761/de539604-0295-4ea3-81f4-5ee76a7f06ec)

我使用angular 12的版本,我在项目中安装了这个库,并按照README.md的使用方式编码,然后项目就起不来了

![1716348910678](https://github.com/Cubelrti/sm-crypto-v2/assets/43802788/65910746-131e-4e44-b94d-ea9acc164267)

秘钥交换的结果是什么