Skip to content
JS
Comparison

hash-wasm vs crypto-hash

Cryptography and hashingPackage data 25 Sept 2026
hash-wasmv4.12.0, 19 Nov 2024

Lightning fast hash functions for browsers and Node.js using hand-tuned WebAssembly binaries (MD4, MD5, SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, PBKDF2, Argon2, bcrypt, scrypt, Adler-32, CRC32, CRC32C, RIPEMD-160, HMAC, xxHash, SM3, Whirlpool)

$ npm install hash-wasm
crypto-hashv4.0.1, 10 Dec 2025

Tiny hashing module that uses the native crypto API in Node.js and the browser

$ npm install crypto-hash
Metrichash-wasmcrypto-hashDifference
Weekly downloads1,091,448293,877hash-wasm 3.7x higher
12-month download growth+177%+4%hash-wasm +173 pts
Gzip size---
Minified size---
Dependencies00Same
Unpacked size1.7 MB12 kBcrypto-hash 145.5x smaller
Latest release4.12.0, 19 Nov 20244.0.1, 10 Dec 2025crypto-hash 13 months more recent
Releases, last 12 months0--
First published10 Apr 2020--
GitHub stars1,159645hash-wasm 1.8x higher
Open issues90hash-wasm 9 more
Open pull requests40hash-wasm 4 more
Contributors---
Commits, last 52 weeks03crypto-hash higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM onlyDiffers
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

hash-wasm1.1m latest weekcrypto-hash293.9k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

hash-wasm

Major versions
  1. 1.0.011 Apr 2020
  2. 2.0.011 Apr 2020
  3. 3.0.024 May 2020
  4. 4.0.029 Aug 2020
Last 5 releases
  1. 4.12.019 Nov 2024
  2. 4.11.013 Nov 2023
  3. 4.10.015 Oct 2023
  4. 4.9.022 Jul 2021
  5. 4.8.027 Jun 2021
37 releases in total, 0 in the last 12 months

crypto-hash

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
hash-wasm

-

crypto-hash

-

hash-wasm

-

crypto-hash

-

  • Need no runtime dependenciesBoth
  • Need both ESM and CommonJS entry pointshash-wasm (hash-wasm: ESM + CommonJS; crypto-hash: ESM only)
  • Need to load it with require()hash-wasm
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementhash-wasm: none declared; crypto-hash: >=20 (engines field in package.json)
  • Need the more recent releasecrypto-hash (4.0.1 on 10 Dec 2025 vs 4.12.0 on 19 Nov 2024)
  • Higher weekly npm downloadshash-wasm (1.1m vs 293.9k)

Each line is generated from the data above.

crypto-hash: crypto-hash npm registry, crypto-hash npm downloads, crypto-hash GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.