crypto-js-wasm
crypto-js-wasm copied to clipboard
An alternative to crypto-js implemented with WebAssembly and ESM
Uncaught TypeError: Cannot read properties of undefined (reading 'inflate') pako.inflate这个库是node的,浏览器内好像无法使用
按照文档的说明加密解密,耗时1-2s,和预期相差很大
即时只加载需要的wasm构建时也会全量构建,经过了gzip依然很大,相关code如下  
能否支持国密算法 SM3、SM4
大致浏览器了js端如果使用wasm的,如md5 ``` MD5Algo.wasm = await loadWasm(wasmBytes); ``` 而这个wasmBytes 应该就是在做来自Rust项目编译后的内容, ``` // file: md5_wasm.js import { generateWasmBytes } from '../../utils/wasm-utils'; export const wasmBytes = generateWasmBytes('eJy1XH+cVcV1n5l736+977EXREUWZd4VFVRgf79dNA13FZASgp9+...'); ``` 有没有可能在Rust编译后,将输出产物写入到一个文件,,然后在 **md5_wasm.js** 中类似Vite 那种方式 ```...
使用md5 hash的salt还是会暴露 是不是应该把salt放到wasm里面才更加安全
The code below: ```ts import cryptoWasm from '@originjs/crypto-js-wasm'; const rsa = new cryptoWasm.algo.RSA(); ``` Results in the following error: ``` This expression is not constructable. Type 'WasmRSAAlgoClass' has no construct...
Currently, the WASM files are embedded as gzipped base64 strings in the module. However, this approach is not compatible with Cloudflare Workers runtime and causes errors when using Wrangler. ...