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

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

Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.