Comparison
hkdf vs pycryptodome vs PyNaCl vs pysodium
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
HMAC-based Extract-and-Expand Key Derivation Function (HKDF)
Likely abandoned. No release or commit for years (last release over 11 years ago).
pip install hkdfSelf-contained cryptographic library for Python, classical and post-quantum
Actively maintained. Last release 2 days ago, commits in 10 of the last 26 weeks. A safe choice.
pip install pycryptodomePython binding to the Networking and Cryptography (NaCl) library
Maintained. Last release 11 months ago, commits in 9 of the last 26 weeks. Weaker on release cadence.
pip install pynaclpython libsodium wrapper
Maintained. Last release 7 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pysodiumIn short
- hkdf looks abandoned: avoid it for new projects.
- PyNaCl is the most used: 170M downloads a month, 2.0× more than pycryptodome.
- pycryptodome is better maintained: Pythie’s Index 80 against 63.
- Safe default for a new project: PyNaCl, or pycryptodome if active maintenance matters most.
Side by side
| Metric | hkdf | pycryptodome | PyNaCl | pysodium |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 16 | 80 |