Decision Workspace
crypto_secretbox vs xsalsa20poly1305 vs chacha20poly1305
Side-by-side comparison of Rust crates
63
crypto_secretbox
growingv0.1.1
Pure Rust implementation of the XSalsa20Poly1305 (a.k.a. NaCl crypto_secretbox) authenticated encryption cipher as well as the libsodium variant of XChaCha20Poly1305
61
xsalsa20poly1305
growingv0.9.1
DEPRECATED: please use the `crypto_secretbox` crate
73
chacha20poly1305
growingv0.11.0
Pure Rust implementation of the ChaCha20Poly1305 Authenticated Encryption with Additional Data Cipher (RFC 8439) with optional architecture-specific hardware acceleration. Also contains implementations of the XChaCha20Poly1305 extended nonce variant of ChaCha20Poly1305, and the reduced-round ChaCha8Poly1305 and ChaCha12Poly1305 lightweight variants.
Core Metrics
| crypto_secretbox | xsalsa20poly1305 | chacha20poly1305 | |
|---|---|---|---|
| Health Score | 63 | 61 | 73 |
| Total Downloads | 25.8M | 2.3M | 92.9M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 711 | 174 | 14.0K |
| Releases | 4 | 19 | 35 |
| Last Updated | 369d ago | 1242d ago | 65d ago |
| Age | 3y 10m | 7y | 10y |
Health Breakdown
crypto_secretbox
Maintenance
5
Quality
16
Community
19
Popularity
8
Documentation
15
xsalsa20poly1305
Maintenance
4
Quality
17
Community
17
Popularity
8
Documentation
15
chacha20poly1305
Maintenance
14
Quality
16
Community
20
Popularity
8
Documentation
15
Technical Details
| crypto_secretbox | xsalsa20poly1305 | chacha20poly1305 | |
|---|---|---|---|
| Version | 0.1.1 | 0.9.1 | 0.11.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT | Apache-2.0 OR MIT | Apache-2.0 OR MIT |
| Dependencies | 9 | 5 | 6 |
| Crate Size | 11KB | 12KB | 71KB |
| Features | 7 | 8 | 8 |
| Yanked % | 0.0% | 0.0% | 2.9% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.60 | 1.56 | 1.85 |
| Owners | 2 (team) | 2 (team) | 2 (team) |
Links
Quick Verdict
- •chacha20poly1305 leads with a health score of 73/100, but none of the options score above 80.
- •chacha20poly1305 is depended on by 14.0K crates — strongest ecosystem trust.
- •⚠ crypto_secretbox, xsalsa20poly1305 have not been updated in over a year.