Comparison
M2Crypto vs oscrypto vs pycrypto vs pyOpenSSL
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 pycryptoPython wrapper module around the OpenSSL library
Actively maintained. Last release 4 months ago, commits in 13 of the last 26 weeks. A safe choice.
pip install pyopensslIn short
- pycrypto looks abandoned: avoid it for new projects.
- pyOpenSSL is the most used: 179.4M downloads a month, 9.9× more than oscrypto.
- Maintenance is comparable: pyOpenSSL 82, M2Crypto 82, oscrypto 19 on Pythie’s Index.
- Safe default for a new project: pyOpenSSL.