Decision Workspace
crypto_secretbox vs xsalsa20poly1305 vs chacha20poly1305
Side-by-side comparison of Rust crates
64
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
72
chacha20poly1305
growingv0.10.1
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 | 64 | 61 | 72 |
| Total Downloads | 15.5M | 1.9M | 49.7M |
| 30d Downloads | 1.5M | 164.1K | 4.0M |
| Dependents | 226 | 137 | 5.9K |
| Releases | 4 | 19 | 34 |
| Last Updated | 173d ago | 1046d ago | 53d ago |
| Age | 3y 3m | 6y 5m | 9y 5m |
Health Breakdown
crypto_secretbox
Maintenance
8
Quality
16
Community
17
Popularity
8
Documentation
15
xsalsa20poly1305
Maintenance
4
Quality
17
Community
17
Popularity
8
Documentation
15
chacha20poly1305
Maintenance
15
Quality
16
Community
20
Popularity
8
Documentation
13
Technical Details
| crypto_secretbox | xsalsa20poly1305 | chacha20poly1305 | |
|---|---|---|---|
| Version | 0.1.1 | 0.9.1 | 0.10.1 |
| 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 | 68KB |
| Features | 7 | 8 | 8 |
| Yanked % | 0.0% | 0.0% | 2.9% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.60 | 1.56 | — |
| Owners | 2 (team) | 2 (team) | 2 (team) |
Links
Quick Verdict
- •chacha20poly1305 leads with a health score of 72/100, but none of the options score above 80.
- •chacha20poly1305 is depended on by 5.9K crates — strongest ecosystem trust.
- •⚠ xsalsa20poly1305 has not been updated in over a year.