Comparison
M2Crypto vs pycrypto vs pycryptodome vs PyNaCl
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A Python crypto and SSL toolkit
Actively maintained. Last release 7 weeks ago. A safe choice.
pip install m2cryptoCryptographic modules for Python.
Likely abandoned. No release or commit for years (last release over 12 years ago).
pip install pycryptoSelf-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 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.
- PyNaCl is the most used: 167.5M downloads a month, 2.0× more than pycryptodome.
- M2Crypto is better maintained: Pythie’s Index 82 against 65.
- Safe default for a new project: PyNaCl, or M2Crypto if active maintenance matters most.
Side by side
| Metric | M2Crypto | pycrypto | pycryptodome | PyNaCl |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 82 | Pythie’s Index: 19 | Pythie’s Index: 80 | Pythie’s Index: 65 |
| Verdict | Actively maintained | Likely abandoned | Actively maintained | Maintained |
| Downloads / month | 324.2K | 9.7M | 85.7M | 167.5M |
| Downloads, month over month | +9% | +5% | +8% | -4% |
| GitHub stars | – | – | 3.3K | 1.2K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 32 | 468 | 3.1K | 1.1K |
| Last release | Oct 12, 2026 | Jun 20, 2014 | Nov 30, 2026 | Jan 1, 2026 |
| Releases, 12 months | 5 | 0 | 11 | 1 |
| Weeks with commits | – | – | 10 / 26 | 10 / 26 |
| Recent contributors | – | – | 8 | 15 |
| First release | Apr 2006 | Dec 2010 | Jun 2014 | Apr 2013 |
| Python versions | 3.6 – 3.12 | – | 3.9 – 3.15 | 3.8 – 3.14 |
| License | BSD-2-Clause | non-standard | BSD-2-Clause AND Unlicense AND MIT | Apache-2.0 |
| Known vulnerabilities | None | 4 | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.