Comparison
M2Crypto vs oscrypto vs pycrypto vs pycryptodome
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 m2cryptoTLS (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 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 pycryptodomeIn short
- pycrypto looks abandoned: avoid it for new projects.
- pycryptodome is the most used: 85.7M downloads a month, 4.7× more than oscrypto.
- Maintenance is comparable: M2Crypto 82, pycryptodome 80, oscrypto 19 on Pythie’s Index.
- Safe default for a new project: pycryptodome.
Side by side
| Metric | M2Crypto | oscrypto | pycrypto | pycryptodome |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 82 | 19 |