bcrypt (Python)
Modern password hashing library with secure bcrypt algorithm implementation.
Auth and security libraries PyPI Apache-2.0
Used in agent projects
68
0.5% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#17 of 47
by use in those projects
Downloads
37.2M
PyPI, last 7 days, bcrypt
GitHub stars
1,504
last push Oct 9, 2026
How bcrypt (Python) is used
bcrypt (Python) is a dependency in 68 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.5%), #17 of 47 in auth and security libraries. The most used alternative there is NextAuth.js. Projects that use it most often also use Uvicorn (88.2%), FastAPI (85.3%), Pydantic (83.8%).
Often used with bcrypt (Python)
| Uvicorn | 88.2% of bcrypt (Python) projects · 20.6× more than average |
|---|---|
| FastAPI | 85.3% of bcrypt (Python) projects · 20.2× more than average |
| Pydantic | 83.8% of bcrypt (Python) projects · 16.4× more than average |
| python-dotenv | 79.4% of bcrypt (Python) projects · 12.2× more than average |
| SQLAlchemy | 70.6% of bcrypt (Python) projects · 35.9× more than average |
| python-multipart | 61.8% of bcrypt (Python) projects · 36.1× more than average |
| Requests | 58.8% of bcrypt (Python) projects · 11.1× more than average |
| pytest | 54.4% of bcrypt (Python) projects · 20.9× more than average |
By coding agent
| Claude Code | 1.1% of projects set up for it |
|---|---|
| GitHub Copilot | 0.8% of projects set up for it |
| Cursor | 1.0% of projects set up for it |
Share of public repos configured for each agent that list bcrypt (Python) as a dependency.
Install
| Package | pip install bcrypt |
|---|---|
| Main stacks | Python (66), Other (1), Next.js (1) |
| Example projects | Consiliency/Code-Index-MCP, NihadMemmedli/quorvex_ai, ericrosenberg1/CityBot2, micheltlutz/dev-challenge, RoboFinSystems/robosystems |
Alternatives to bcrypt (Python)
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| NextAuth.js npm Complete open-source authentication solution designed for Next.js applications. |
266 (2.1%) | 6.7M | 28.4K | ISC |
| bcryptjs npm Pure JavaScript bcrypt implementation for secure password hashing without dependencies. |
256 (2.0%) | 14.7M | 3,797 | BSD-3-Clause |
| jsonwebtoken npm Create, verify and decode JSON Web Tokens for authentication and secure data transmission. |
241 (1.9%) | 59.3M | 18.2K | MIT |
| cryptography pypi Python library providing cryptographic recipes and primitives for secure applications. |
213 (1.7%) | 281M | 7,803 | — |
| jose npm Comprehensive JWT and JWK handling for Node.js and web runtimes. |
141 (1.1%) | 151M | 7,824 | MIT |
| PyJWT pypi Python library for encoding and decoding JSON Web Tokens. |
128 (1.0%) | 154M | 5,714 | — |
| Better Auth npm Comprehensive authentication framework for TypeScript with multiple strategies. |
126 (1.0%) | 11.4M | 30.2K | MIT |
| Helmet npm Express middleware that sets HTTP security headers to prevent vulnerabilities. |
125 (1.0%) | 16.2M | 10.7K | MIT |