Decision Workspace
xsalsa20poly1305 vs crypto_secretbox vs chacha20poly1305
Side-by-side comparison of Rust crates
61
xsalsa20poly1305
growingv0.9.1
DEPRECATED: please use the `crypto_secretbox` crate
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
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
| xsalsa20poly1305 | crypto_secretbox | chacha20poly1305 | |
|---|---|---|---|
| Health Score | 61 | 64 | 72 |
| Total Downloads | 1.9M | 15.5M | 49.7M |
| 30d Downloads | 164.1K | 1.5M | 4.0M |
| Dependents | 137 | 226 | 5.9K |
| Releases | 19 | 4 | 34 |
| Last Updated | 1046d ago | 173d ago | 53d ago |
| Age | 6y 5m | 3y 3m | 9y 5m |
Health Breakdown
xsalsa20poly1305
Maintenance
4
Quality
17
Community
17
Popularity
8
Documentation
15
crypto_secretbox
Maintenance
8
Quality
16
Community
17
Popularity
8
Documentation
15
chacha20poly1305
Maintenance
15
Quality
16
Community
20
Popularity
8
Documentation
13
Technical Details
| xsalsa20poly1305 | crypto_secretbox | chacha20poly1305 | |
|---|---|---|---|
| Version | 0.9.1 | 0.1.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 | 5 | 9 | 6 |
| Crate Size | 12KB | 11KB | 68KB |
| Features | 8 | 7 | 8 |
| Yanked % | 0.0% | 0.0% | 2.9% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.56 | 1.60 | — |
| 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.