LuaRocks.org had a security incident in September 2026. Read the incident report.

cipher.chacha20

ChaCha20, XChaCha20 and ChaCha20-Poly1305 for Lua strings and carrays

$ luarocks install cipher.chacha20

The module cipher.chacha20 of lua-cipher provides the stream cipher
ChaCha20 (RFC 8439, also with 64 bit nonces and as XChaCha20), the
authenticated encryption ChaCha20-Poly1305 of RFC 8439 and
XChaCha20-Poly1305, and the one-time authenticator Poly1305, in one call
or as a stream. Own self-contained C code without table lookups, no
external library. Data may be Lua strings or carray objects, read
without copying; the output can be written directly into a carray.

Versions

scm-0dev4 hours ago0 downloads
0.0.1-14 hours ago0 downloads

Dependencies

lua >= 5.1

Dependency for

cipher

Manifests