Comparison
cryptography vs oscrypto vs pycrypto vs PyNaCl
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 cryptographyTLS (SSL) sockets, key generation, encryption, decryption, signing, verification and KDFs using the OS crypto libraries. Does not require a compiler, and relies on the OS for patching. Works on Windows, OS X and Linux/BSD.
Low maintenance activity. Last release over 4 years ago, commits in 3 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install oscryptoCryptographic modules for Python.
Likely abandoned. No release or commit for years (last release over 12 years ago).
pip install pycryptoPython binding to the Networking and Cryptography (NaCl) library
Maintained. Last release 11 months ago, commits in 10 of the last 26 weeks. Weaker on release cadence.
pip install pynaclIn short
- pycrypto 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 | oscrypto | pycrypto | PyNaCl |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 93 | Pythie’s Index: 19 | Pythie’s Index: 19 | Pythie’s Index: 65 |
| Verdict | Actively maintained | Low maintenance activity | Likely abandoned | Maintained |
| Downloads / month | 1.4B | 18.2M | 9.7M | 167.5M |
| Downloads, month over month | +7% | +1% | +5% | -4% |
| GitHub stars | 7.9K | 346 | – | 1.2K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 13K | 59 | 468 | 1.1K |
| Last release | Sep 30, 2026 | Mar 18, 2022 | Jun 20, 2014 | Jan 1, 2026 |
| Releases, 12 months | 11 | 0 | 0 | 1 |
| Weeks with commits | 26 / 26 | 3 / 26 | – | 10 / 26 |
| Recent contributors | 17 | 6 | – | 15 |
| First release | Jan 2014 | Oct 2015 | Dec 2010 | Apr 2013 |
| Python versions | 3.9 – 3.15 | 3.2 – 3.10 | – | 3.8 – 3.14 |
| License | Apache-2.0 OR BSD-3-Clause | MIT | non-standard | Apache-2.0 |
| Known vulnerabilities | None | None | 4 | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.