Skip to content

sm-crypto-wasmChina crypto, compiled to WebAssembly

SM2 / SM3 / SM4 / SM9 / ZUC — one API for Node 18+ and modern browsers. Split per algorithm, lazy-loaded on demand.

sm-crypto-wasm

Start here ​

Documentation status

The Chinese pages are the complete reference — full parameter tables, usage and live Playgrounds for all five algorithms. These English pages carry the core material; the per-algorithm API tables are being translated.

The shape of this library

Each algorithm is its own namespace exposing ensureLoaded() plus business functions. The wasm is split per algorithm: only the algorithm you call gets loaded. await algo.ensureLoaded() once, then every business call is synchronous.

Released under the Apache-2.0 License