Comparison
bcrypt vs passlib vs pbkdf2 vs pwdlib
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Modern password hashing for your software and your servers
Actively maintained. Last release 1 day ago, commits in 22 of the last 26 weeks. A safe choice.
pip install bcryptComprehensive password hashing framework supporting over 30 schemes
Maintained. Last release 9 days ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install passlibPKCS#5 v2.0 PBKDF2 Module
Likely abandoned. No release or commit for years (last release over 15 years ago).
pip install pbkdf2Modern password hashing for Python
Maintained. Last release 2 weeks ago, commits in 6 of the last 26 weeks. Weaker on contributor spread.
pip install pwdlibIn short
- pbkdf2 looks abandoned: avoid it for new projects.
- bcrypt is the most used: 173.5M downloads a month, 5.1× more than passlib.
- bcrypt also has the best Pythie’s Index (80).
- pwdlib is growing fastest: downloads +14% over the last month.
- Safe default for a new project: bcrypt.
Side by side
| Metric | bcrypt | passlib | pbkdf2 | pwdlib |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 80 | Pythie’s Index: 47 | Pythie’s Index: 19 | Pythie’s Index: 67 |
| Verdict | Actively maintained | Maintained | Likely abandoned | Maintained |
| Downloads / month | 173.5M | 33.9M | 181K | 4.8M |
| Downloads, month over month | +5% | +1% | +10% | +14% |
| GitHub stars | 1.5K | 48 | – | 187 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 1.2K | 1.1K | 50 | 80 |
| Last release | Dec 1, 2026 | Nov 23, 2026 | Jun 14, 2011 | Nov 15, 2026 |
| Releases, 12 months | 1 | 1 | 0 | 4 |
| Weeks with commits | 22 / 26 | 3 / 26 | – | 6 / 26 |
| Recent contributors | 5 | 4 | – | 7 |
| First release | May 2013 | Mar 2011 | Jun 2011 | Feb 2024 |
| Python versions | 3.9 – 3.15 | 3.11 – 3.15 | – | 3.11 – 3.15 |
| License | Apache-2.0 | BSD-3-Clause | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.