Comparison
cryptography vs libnacl vs pycryptodome vs pysodium
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Actively maintained. Last release 2 months ago, commits in 26 of the last 26 weeks. A safe choice.
pip install cryptographyPython bindings for libsodium based on ctypes
Low maintenance activity. Last release over 3 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install libnaclSelf-contained cryptographic library for Python, classical and post-quantum
Actively maintained. Last release 1 day ago, commits in 10 of the last 26 weeks. A safe choice.
pip install pycryptodomepython libsodium wrapper
Maintained. Last release 6 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pysodiumIn short
- cryptography is the most used: 1.4B downloads a month, 16× more than pycryptodome.
- cryptography also has the best Pythie’s Index (93).
- Safe default for a new project: cryptography.
Side by side
| Metric | cryptography | libnacl | pycryptodome | pysodium |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 93 | Pythie’s Index: 25 | Pythie’s Index: 80 | Pythie’s Index: 47 |
| Verdict | Actively maintained | Low maintenance activity | Actively maintained | Maintained |
| Downloads / month | 1.4B | 173.2K | 85.7M | 411K |
| Downloads, month over month | +7% | +6% | +8% | +10% |
| GitHub stars | 7.9K | 84 | 3.3K | 138 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 13K | 21 | 3.1K | 36 |
| Last release | Sep 30, 2026 | Aug 6, 2023 | Nov 30, 2026 | Oct 17, 2026 |
| Releases, 12 months | 11 | 0 | 11 | 1 |
| Weeks with commits | 26 / 26 | 0 / 26 | 10 / 26 | 1 / 26 |
| Recent contributors | 17 | 21 | 8 | 17 |
| First release | Jan 2014 | May 2014 | Jun 2014 | Aug 2013 |
| Python versions | 3.9 – 3.15 | 3.4 – 3.11 | 3.9 – 3.15 | – |
| License | Apache-2.0 OR BSD-3-Clause | Apache-2.0 | BSD-2-Clause AND Unlicense AND MIT | non-standard |
| 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.