Install
chacha20
The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits from the RustCrypto `cipher` crate, with optional architecture-specific hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional rand_core-compatible RNGs based on those ciphers.
0.10.2Latest, 27 Aug 2026
251MDownloads, last 90 days
0Advisories on the latest
2Advisories, all versions
MIT OR Apache-2.0Licence
332Stars
4.5/10OpenSSF Scorecard
Source · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | Counter overflow in chacha20 CVE-2019-25005 | Fixed in 0.2.3 | 25 Aug 2021 |
| ChaCha20 counter overflow can expose repetitions in the keystream CVE-2019-25005 | Fixed in 0.2.3 | 22 Oct 2019 |
On Hacker News
- The design of Chacha20 258 points, 70 comments, 10 Jan 2017
- Support for ChaCha20-Poly1305 released in OpenSSL 1.1.0 91 points, 22 comments, 10 Dec 2015
- ChaCha20-Poly1305 with long nonces – OpenSSL CVE-2019-1543 78 points, 11 comments, 7 Mar 2019
- ChaCha20 and Poly1305 for IETF Protocols 64 points, 9 comments, 20 Jun 2018
Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.