passlib vs bcrypt (Python)
In 1,621 Python projects set up for AI coding agents, passlib is a dependency in 58 (3.6%) and bcrypt (Python) in 55 (3.4%), close to even. Among repos created in the last 90 days that use a auth and security libraries tool, passlib is in 23.8% and bcrypt (Python) in 14.3%, against 15.1% and 14.8% of older ones. 23 projects list both, often a sign of a migration or of a monorepo with several apps.
Auth and security libraries PyPI Updated Nov 17, 2026
| passlib | 3.6% | |
|---|---|---|
| bcrypt (Python) | 3.4% |
Share of 1,621 Python projects set up for AI coding agents that list each one as a dependency.
Side by side
| passlib | bcrypt (Python) | |
|---|---|---|
| Agent projects that use it | 58 | 55 |
| Rank in auth and security libraries | #13 | #14 |
| In new repos with a auth and security libraries tool (last 90 days) | 23.8% | 14.3% |
| In older repos with one | 15.1% | 14.8% |
| Downloads, last 7 days | 7.9M | 40.5M |
| GitHub stars | — | 1,509 |
| Last push to its repo | — | Nov 17, 2026 |
| License | BSD | Apache-2.0 |
| Funding | — | — |
| Projects that list both | 23 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.
By coding agent
| Projects set up for | Python repos | passlib | bcrypt (Python) |
|---|---|---|---|
| Claude Code | 782 | 3.8% | 4.6% |
| GitHub Copilot | 805 | 3.1% | 2.9% |
| Cursor | 548 | 4.9% | 4.4% |
| Devin Desktop | 60 | 8.3% | 0% |
Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
passlib
Comprehensive password hashing framework supporting 30+ algorithms and schemes.
Most often used with it:
| FastAPI | 94.8% of its projects |
|---|---|
| Uvicorn | 93.1% of its projects |
| Pydantic | 82.8% of its projects |
| python-multipart | 77.6% of its projects |
| SQLAlchemy | 75.9% of its projects |
pip install passlib
bcrypt (Python)
Modern password hashing library with secure bcrypt algorithm implementation.
Most often used with it:
| Uvicorn | 90.9% of its projects |
|---|---|
| FastAPI | 89.1% of its projects |
| Pydantic | 80.0% of its projects |
| python-dotenv | 74.5% of its projects |
| SQLAlchemy | 65.5% of its projects |
pip install bcrypt
More matchups
jsonwebtoken vs joseNextAuth.js vs Better Authbcryptjs vs bcrypt (JavaScript)Better Auth vs ClerkNextAuth.js vs ClerkPyJWT vs python-jose
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.