Description
hash-wasm is a hash function library for browsers, Node.js and Deno that uses hand-tuned WebAssembly binaries, compiled from optimized C code, to compute hashes faster than other JavaScript or WASM libraries according to its benchmarks. It covers many algorithms, including Adler-32, Argon2, bcrypt, BLAKE2, BLAKE3, CRC32, CRC64, HMAC, MD4, MD5, PBKDF2, RIPEMD-160, scrypt, SHA-1, SHA-2, SHA-3, Keccak, SM3, Whirlpool and the xxHash family. Each algorithm is a separate WASM module, typically 3-11 kB gzipped and embedded as base64, so bundlers include only what you use and no linking setup is needed. It handles large data streams, chunked input, UTF-8 strings and typed arrays, works in Web Workers, runs several hash states at once, can save and restore internal state, ships TypeScript types and has zero dependencies.…
Highlights
- Over 20 hash and KDF algorithms incl. Argon2, BLAKE3, SHA-3
- Hand-tuned WebAssembly for speed
- Small per-algorithm modules with tree shaking
- Streaming and chunked input
- Browsers, Node.js, Deno and Web Workers
- TypeScript types, zero dependencies
Ratings & Reviews
No ratings yet
Be the first to rate Hash Wasm.
People also visit
Shamir Secret Sharing
Simple, independently audited, zero-dependency TypeScript implementation of…
Hash Wasm FAQ
What is hash-wasm?
A fast hash function library for browsers and Node.js that uses hand-tuned WebAssembly binaries.
Which algorithms are included?
Adler-32, Argon2, bcrypt, BLAKE2b/2s, BLAKE3, CRC32, CRC64, HMAC, MD4, MD5, PBKDF2, RIPEMD-160, scrypt, SHA-1, SHA-2, SHA-3, Keccak, SM3, Whirlpool and xxHash32/64/3/128.
Will it bloat my bundle?
Each algorithm is its own module, mostly 3-11 kB gzipped, and tree shaking means only the ones you use are bundled.
Where does it run?
In all modern browsers, Node.js and Deno, including Web Workers, with or without a bundler.
Can it hash large files?
Yes. It supports large data streams and chunked input, and can save and load the internal hash state.
What are the best Hash Wasm alternatives?
Popular alternatives to Hash Wasm include Hash, GtkHash and Shamir Secret Sharing. See all Hash Wasm alternatives




