A pure JavaScript implementation of GM/T series(sm2,sm3,sm4) cryptographic algorithms compatible with Node.js and browsers, with type declaration files support. GM/T0003-2012《SM2 public key cryptographic algorithm based on elliptic curves》 ...
main 1Branch0Tags Code This branch is15 commits behindbyte-fe/gm-crypto:main. README MIT license gm-crypto A pure JavaScript implementation of GM/T series cryptographic algorithms for Node.js and browsers, with type declaration files support. ...
🚀前端SM4加解密实战指南 | 项目概述:本项目实现了SM4加解密算法的前端应用,旨在提供安全的数据传输和存储解决方案。应用于号码清洗平台是一个用于处理和管理电话号码数据的软件服务平台。它主要用于企业和组织在营销、客户服务和数据分析等领域中对电话号码进行清洗、验证和管理。技术栈:Vue2JavaScriptCryptoJS、gm-cry...
// Because the calculation amount of sm3 is very small, the speed of js is already fast enough, and the loss of wasm data transmission is much greater than the calculation of js. // So we used the js version of sm3 // pnpm bench DEV v0.34.6 ✓ bench/index.benchmark.ts (4) ...
// Because the calculation amount of sm3 is very small, the speed of js is already fast enough, and the loss of wasm data transmission is much greater than the calculation of js. // So we used the js version of sm3 // pnpm bench DEV v0.34.6 ✓ bench/index.benchmark.ts (4) ...
非Node环境不能使用npm命令安装sm-crypto库,我们可以下载sm-crypto.js,放到我们的项目里使用。通过script标签分别引入sm2.js,sm3.js,sm4.js,然后编码加解密方法,和上面类似。如下图所示:运行结果如下图所示:以上内容就是国密加解密的基本用法了,sm-crypto还有其他功能,大家有兴趣的可以研究研究。想了解更多...
二、nodejs图片处理(gm) api: https://www.npmjs.com/package/gm 及 MD5加密:http://nodejs.cn/doc/node/crypto.html#crypto_crypto_createhash_algorithm 1varfs = require('fs'); 2vargm = require('gm');34gm('./danny.jpg')5 .resize(50, 50,"!")6 .write('./danny2.jpg',function(...
示例代码如下: const CryptoJS = require('crypto-js'); console.log(CryptoJS.MD5('123456').toString())
GM / T系列加密算法的纯JavaScript实现,用于Node.js和浏览器,并支持类型声明文件。 快速开始 安装 使用npm: $ npm install gm-crypto 使用纱: $ yarn add gm-crypto 基本用法 SM2 基于椭圆曲线的公钥密码算法。 const { SM2 } = require ( 'gm-crypto' ) const { publicKey , privateKey } = SM2 ...
基于gm-crypto 密码行业标准化委员会(SM4)和 big-integer 大整数处理 的前后端API数据传输加解密处理模块! gm-crypto sm-crypto big-integer SM2 SM3 SM4 Hex Utf8 Base64 DH密钥交换 前后端API数据传输加解密处理 muguilin •1.0.4•9 months ago•0dependents•MITpublished version1.0.4,9 months ...