Comparison
cryptography vs pycryptodome vs PyNaCl vs rsa
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 cryptographySelf-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 pynaclPure-Python RSA implementation
Archived. The repository is read-only: no more fixes or releases will come.
pip install rsaIn short
- rsa is archived: avoid it for new projects.
- cryptography is the most used: 1.4B downloads a month, 7.3× more than rsa.
- cryptography also has the best Pythie’s Index (93).
- Safe default for a new project: cryptography.
Side by side
| Metric | cryptography | pycryptodome | PyNaCl | rsa |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 93 | Pythie’s Index: 80 | Pythie’s Index: 65 | Pythie’s Index: 6 |
| Verdict | Actively maintained | Actively maintained | Maintained | Archived |
| Downloads / month | 1.4B | 85.7M | 167.5M | 186.4M |
| Downloads, month over month | +7% | +8% | -4% | -5% |
| GitHub stars | 7.9K | 3.3K | 1.2K | 486 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 13K | 3.1K | 1.1K | 501 |
| Last release | Sep 30, 2026 | Nov 30, 2026 | Jan 1, 2026 | Apr 16, 2025 |
| Releases, 12 months | 11 | 11 | 1 | 0 |
| Weeks with commits | 26 / 26 | 10 / 26 | 10 / 26 | 0 / 26 |
| Recent contributors | 17 | 8 | 15 | 18 |
| First release | Jan 2014 | Jun 2014 | Apr 2013 | Apr 2008 |
| Python versions | 3.9 – 3.15 | 3.9 – 3.15 | 3.8 – 3.14 | 3.6 – 3.13 |
| License | Apache-2.0 OR BSD-3-Clause | BSD-2-Clause AND Unlicense AND MIT | Apache-2.0 | Apache-2.0 |
| 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.