Modern password hashing for Python
Maintained. Last release 2 weeks ago, commits in 7 of the last 26 weeks. Weaker on contributor spread.
pip install pwdlibpwdlib
Modern password hashing for Python
Documentation: https://frankie567.github.io/pwdlib/
Source Code: https://github.com/frankie567/pwdlib
Quickstart
pip install 'pwdlib[argon2]'
from pwdlib import PasswordHash
password_hash = PasswordHash.recommended()
hash = password_hash.hash("herminetincture")
password_hash.verify("herminetincture", hash) # True
Why pwdlib?
For years, the de-facto standard to hash passwords was passlib. Unfortunately, it has not been very active recently and its maintenance status is under question. Starting Python 3.13, passlib won't work anymore.
That's why I decided to start pwdlib, a password hash helper for the modern Python era. However, it's not designed to be a complete replacement for passlib, which supports numerous hashing algorithms and features.
✅ Goals