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
69
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 | 69 |
| Total Downloads | 17.5M | 2.0M | 57.2M |
| 30d Downloads | 1.1M | 39.4K | 4.1M |
| Dependents | 409 | 147 | 7.7K |
| Releases | 4 | 19 | 34 |
| Last Updated | 232d ago | 1105d ago | 112d ago |
| Age | 3y 5m | 6y 7m | 9y 7m |
Health Breakdown
crypto_secretbox
Maintenance
7
Quality
16
Community
18
Popularity
8
Documentation
15
xsalsa20poly1305
Maintenance
4
Quality
17
Community
17
Popularity
8
Documentation
15
chacha20poly1305
Maintenance
12
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 69/100, but none of the options score above 80.
- •chacha20poly1305 is depended on by 7.7K crates — strongest ecosystem trust.
- •⚠ xsalsa20poly1305 has not been updated in over a year.