Skip to content
JS
Comparison

bcryptjs vs bcrypt

Cryptography and hashingPackage data 25 Sept 2026
bcryptjsv3.0.3, 2 Nov 2025

Optimized bcrypt in plain JavaScript with zero dependencies, with TypeScript support. Compatible to 'bcrypt'.

$ npm install bcryptjs
bcryptv6.0.0, 11 May 2025

A bcrypt library for NodeJS.

$ npm install bcrypt
MetricbcryptjsbcryptDifference
Weekly downloads9,699,9874,538,268bcryptjs 2.1x higher
12-month download growth+145%+82%bcryptjs +63 pts
Gzip size---
Minified size---
Dependencies02bcrypt 2 more
Unpacked size110 kB1.1 MBbcryptjs 9.9x smaller
Latest release3.0.3, 2 Nov 20256.0.0, 11 May 2025bcryptjs 6 months more recent
Releases, last 12 months10bcryptjs 1 more
First published1 May 201321 Feb 2011bcrypt 2.2 years earlier
GitHub stars3,7977,804bcrypt 2.1x higher
Open issues127bcrypt 26 more
Open pull requests511bcrypt 6 more
Contributors---
Commits, last 52 weeks16bcrypt 6.0x higher
TypeScript typesBundledNoneDiffers
Module formatESM + CommonJSCommonJSDiffers
Runtimes---
LicenseBSD-3-ClauseMITDiffers

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.

bcryptjs9.7m latest weekbcrypt4.5m 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.

bcryptjs

Major versions
  1. 0.7.51 May 2013
  2. 1.0.08 Jun 2014
  3. 2.0.015 Jul 2014
  4. 3.0.013 Feb 2025
Last 5 releases
  1. 3.0.32 Nov 2025
  2. 3.0.218 Feb 2025
  3. 3.0.117 Feb 2025
  4. 3.0.013 Feb 2025
  5. 0.1.013 Feb 2025
30 releases in total, 1 in the last 12 months

bcrypt

Major versions
  1. 0.1.221 Feb 2011
  2. 1.0.05 Dec 2016
  3. 2.0.07 Apr 2018
  4. 3.0.06 Jul 2018
  5. 4.0.021 Feb 2020
  6. 5.0.08 Jun 2020
  7. 6.0.011 May 2025
Last 5 releases
  1. 6.0.011 May 2025
  2. 5.1.116 Aug 2023
  3. 5.1.06 Oct 2022
  4. 5.0.126 Feb 2021
  5. 5.0.08 Jun 2020
53 releases in total, 0 in the last 12 months
bcryptjs

-

bcrypt

-

bcryptjs

-

bcrypt

-

  • Need no runtime dependenciesbcryptjs (bcryptjs has 0, bcrypt has 2)
  • Need both ESM and CommonJS entry pointsbcryptjs (bcryptjs: ESM + CommonJS; bcrypt: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfbcryptjs (bcryptjs: Bundled; bcrypt: None)
  • Node.js version requirementbcryptjs: none declared; bcrypt: >= 18 (engines field in package.json)
  • Need the more recent releasebcryptjs (3.0.3 on 2 Nov 2025 vs 6.0.0 on 11 May 2025)
  • Higher weekly npm downloadsbcryptjs (9.7m vs 4.5m)
  • Licensebcryptjs: BSD-3-Clause; bcrypt: MIT

Each line is generated from the data above.

bcrypt: bcrypt npm registry, bcrypt npm downloads, bcrypt GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.