Skip to content
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

【开源自荐】crypto-js-wasm: 通过WebAssembly技术实现的,完全兼容crypto-js API的加密算法库 #2563

Open
PeterAlfredLee opened this issue Aug 11, 2022 · 0 comments

Comments

@PeterAlfredLee
Copy link

项目信息

项目名:crypto-js-wasm

项目简介

crypto-js-wasm 是基于 JavaScript 和 WebAssembly 的哈希与加密算法库,其灵感来自于crypto-js

安全: 得益于 WebAssembly ,crypto-js-wasm的计算过程是不可见、不可中断的
高效: 相比于crypto-js,计算效率最高提升了16倍(见 Benchmark)
兼容crypto-js: 与crypto-js的API完全相同
浏览器 & Nodejs: 同时支持 浏览器 和 nodejs
全能: 支持15+ 以上的哈希和加密算法,包括常用的 MD5、 SHA-x、 AES、RC4等
ESM: 基于ESM语法编写,编译为UMD以保证兼容性

crypto-js-wasm与crypto-js的Benchmark性能对比

以下 benchmark 结果运行自一台台式机 (i5-4590, 16 GB RAM, Windows 10 Version 21H2 (OSBuild 19044, 1466))。

Chrome 102.0.5005.63:
benchmark_chrome

Firefox 101.0:
benchmark_firefox

Nodejs v16.6.4:
nodejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants