qmetrics.net

bcrypt.js

Pure JavaScript bcrypt hashing with no dependencies

bcrypt.js implements optimized bcrypt password hashing in JavaScript with TypeScript types, for Node.js and browsers.

Overview

bcrypt.js is a JavaScript implementation of the bcrypt password hashing function with no external dependencies and TypeScript support. It aims for compatibility with the Node.js C++ bcrypt binding while also running in the browser.

The algorithm incorporates a salt against rainbow-table attacks and uses an adaptive cost so hashes can be slowed as hardware improves. The pure JavaScript code is slower than native bindings, which reduces effective iterations in the same time window. Maximum password input is 72 bytes in UTF-8 and generated hashes are 60 characters; bcrypt.truncates can test whether a password would be truncated.

The package exports an ECMAScript module with a UMD fallback and documents sync and async APIs for generating salts, hashing, and comparing passwords, plus optional progress callbacks and a random fallback when Web Crypto and Node crypto are unavailable. A command-line usage mode is documented alongside CDN consumption patterns for browsers.

bcrypt.js builds on earlier bcrypt-nodejs and javascript-bcrypt work.

Key features

  • Sync and async hash APIs
  • Salt generation with cost rounds
  • Password compare helpers
  • ESM with UMD browser fallback
  • TypeScript typings
  • Progress callbacks on hash
  • Configurable random fallback
  • Command-line usage support

Use cases

  • Hashing passwords in Node.js apps
  • Client-side bcrypt where native binding unavailable
  • Verifying login passwords against stored hashes
  • Adaptive cost password storage
  • Bundled auth without extra dependencies

Tags

Similar software

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

  • Rack and Warden integration
  • Pluggable authentication modules
  • Rails engine MVC stack
RubyDetails →
★ 24.3k⟳ 1 month agoMIT

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

  • Login and permission annotations
  • Distributed session with Redis
  • Built-in SSO mode variants
JavaDetails →
★ 19.1k⟳ 16 days agoApache-2.0

jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

  • JWT sign and verify APIs
  • HMAC and asymmetric algorithms
  • Standard claim options
JavaScriptDetails →
★ 18.2k⟳ 5 months agoMIT

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

  • Dozens of built-in OAuth providers
  • Builder and plain API styles
  • Custom OAuth platform adapters
JavaDetails →
★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ months

laravel-permission

Laravel roles and permissions management package

A Laravel package that stores roles and permissions in your database and wires them to users, with helpers to assign capabilities and check access through Laravel's gate and Blade.

  • Database-backed roles and permissions
  • Assign permissions and roles to users
  • Permissions registered on Laravel gate
PHPDetails →
★ 13k⟳ 3 days agoMIT