Comparison
cryptography vs M2Crypto vs oscrypto 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 2 months ago, commits in 26 of the last 26 weeks. A safe choice.
pip install cryptographyA 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 oscryptopython libsodium wrapper
Maintained. Last release 6 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install pysodiumIn short
- cryptography is the most used: 1.4B downloads a month, 75× more than oscrypto.
- cryptography also has the best Pythie’s Index (93).
- Safe default for a new project: cryptography.
Side by side
| Metric | cryptography | M2Crypto | oscrypto | pysodium |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 93 | Pythie’s Index: 82 | Pythie’s Index: 19 | Pythie’s Index: 47 |
| Verdict | Actively maintained | Actively maintained | Low maintenance activity | Maintained |
| Downloads / month | 1.4B | 324.2K | 18.2M | 411K |
| Downloads, month over month | +7% | +9% | +1% | +10% |
| GitHub stars | 7.9K | – | 346 | 138 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 13K | 32 | 59 | 36 |
| Last release | Sep 30, 2026 | Oct 12, 2026 | Mar 18, 2022 | Oct 17, 2026 |
| Releases, 12 months | 11 | 5 | 0 | 1 |
| Weeks with commits | 26 / 26 | – | 3 / 26 | 1 / 26 |
| Recent contributors | 17 | – | 6 | 17 |
| First release | Jan 2014 | Apr 2006 | Oct 2015 | Aug 2013 |
| Python versions | 3.9 – 3.15 | 3.6 – 3.12 | 3.2 – 3.10 | – |
| License | Apache-2.0 OR BSD-3-Clause | BSD-2-Clause | MIT | 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.