# pyca/bcrypt

Modern(-ish) password hashing for your software and your servers

Repository: https://github.com/pyca/bcrypt
Canonical: https://ross.abutalabs.com/products/bcrypt
Language: Python
License: Apache-2.0
License Family: permissive
Topics: python
Last push: 2026-08-24T03:17:27+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4863, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1499, forks 216 (observed 2026-08-28T04:04:54.095723+00:00)

## What it is
pyca/bcrypt is a Python library providing bcrypt password hashing and a bcrypt_pbkdf key derivation function. It offers salted hashing with an adjustable work factor for securely storing and verifying user passwords.

## Use cases
- hash user passwords in a python web app
- verify passwords against bcrypt hashes
- generate salted password hashes with adjustable cost
- derive encryption keys from passwords with bcrypt_pbkdf
- migrate legacy password storage to bcrypt

## When to choose
- you need battle-tested bcrypt hashing in Python
- you want a simple hashpw/checkpw API
- you need OpenSSH-compatible bcrypt_pbkdf key derivation

## When to avoid
- you can use argon2id or scrypt instead, as the maintainers recommend
- you need general-purpose encryption rather than password hashing
- your environment cannot build Rust/C extensions

## Facets
- artifact type: library
- maturity: active
- function: cryptography, security, auth
- domain: security, developer-tools, backend
- platform: python, windows, cross-platform
- tags: password-hashing, bcrypt, kdf, salt, linux, macos

## Member repositories
- pyca/bcrypt (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.095723+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-30T04:33:03.357366+00:00, confidence not recorded.
  - readme: https://github.com/pyca/bcrypt (fetched 2026-08-28T04:04:54.095723+00:00, sha 7011a2a32566)
- Data as of 2026-08-30T08:39:29.467469+00:00.
