Comparison
cryptography vs fernet vs PyNaCl 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 today, commits in 26 of the last 26 weeks. A safe choice.
pip install cryptographyA simple python fernet implementation
Likely abandoned. No release or commit for years (last release over 10 years ago).
pip install fernetPython 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
- fernet looks abandoned: avoid it for new projects.
- cryptography is the most used: 1.4B downloads a month, 8.1× more than PyNaCl.
- cryptography also has the best Pythie’s Index (93).
- Safe default for a new project: cryptography.
Side by side
| Metric | cryptography | fernet | PyNaCl | pysodium |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 93 | Pythie’s Index: 13 | Pythie’s Index: 63 | Pythie’s Index: 47 |
| Verdict | Actively maintained | Likely abandoned | Maintained | Maintained |
| Downloads / month | 1.4B | 305.5K | 170M | 404.5K |
| Downloads, month over month | +9% | +6% | -1% | +6% |
| GitHub stars | 7.9K | 15 | 1.2K | 138 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 13K | 18 | 1.1K | 36 |
| Last release | Dec 2, 2026 | Sep 18, 2016 | Jan 1, 2026 | Oct 17, 2026 |
| Releases, 12 months | 12 | 0 | 1 | 1 |
| Weeks with commits | 26 / 26 | 0 / 26 | 9 / 26 | 1 / 26 |
| Recent contributors | 16 | 2 | 15 | 17 |
| First release | Jan 2014 | Aug 2016 | Apr 2013 | Aug 2013 |
| Python versions | 3.9 – 3.15 | 3.4 – 3.5 | 3.8 – 3.14 | – |
| License | Apache-2.0 OR BSD-3-Clause | MIT | Apache-2.0 | 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.