# bcrypt-ruby/bcrypt-ruby

bcrypt-ruby is a Ruby binding for the OpenBSD bcrypt() password hashing algorithm, allowing you to easily store a secure hash of your users' passwords.

Repository: https://github.com/bcrypt-ruby/bcrypt-ruby
Canonical: https://ross.abutalabs.com/products/bcrypt-ruby
Language: C
License: NOASSERTION
License Family: other
Last push: 2026-06-19T18:33:31+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 63, longevity 100
- inputs: {"age_days": 6692, "days_push": 75, "days_rel": 168, "gap_med": 77, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1994, forks 290 (observed 2026-08-28T04:06:03.330320+00:00)

## What it is
bcrypt-ruby is a Ruby binding to the OpenBSD bcrypt() password hashing algorithm, provided as a gem with a native C extension. It lets developers securely hash and verify user passwords, and powers Rails' has_secure_password.

## Use cases
- hash user passwords securely in a Ruby app
- verify passwords against bcrypt hashes
- implement authentication in Rails with has_secure_password
- store salted password hashes instead of plaintext
- configure bcrypt cost factor for slower hashing

## When to choose
- you need battle-tested password hashing in Ruby or Rails
- you want a simple API for creating and checking bcrypt hashes
- you need cross-platform support including JRuby and Windows

## When to avoid
- you need modern memory-hard hashing like Argon2id
- you are not working in Ruby
- you need general-purpose encryption rather than password hashing

## Facets
- artifact type: library
- maturity: stable
- function: cryptography, auth, security
- domain: security, backend, web-development
- platform: ruby, jvm, windows, cross-platform
- tags: password-hashing, bcrypt, ruby-gem, rails, native-extension, linux, macos

## Member repositories
- bcrypt-ruby/bcrypt-ruby (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.330320+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:02:32.129793+00:00, confidence not recorded.
  - readme: https://github.com/bcrypt-ruby/bcrypt-ruby (fetched 2026-08-28T04:06:03.330320+00:00, sha 53ed363bef67)
- Data as of 2026-08-30T08:39:29.467469+00:00.
