
Advanced | Libsodium documentation
The functions outlined in this section are low-level and implement specific algorithms. They are only designed to be used as building blocks for custom constructions or interoperability with other libraries …
Introduction | Libsodium documentation
Sodium is a modern, easy-to-use software library for encryption, decryption, signatures, password hashing, and more.
doc.libsodium.org
The available algorithms are the same on all supported platforms, input and output formats are also identical on all platforms, and bindings for various programming languages tend to leverage the …
AEAD constructions | Libsodium documentation
libsodium supports two popular constructions: AES256-GCM and ChaCha20-Poly1305 (original version and IETF version), as well as a variant of the latter with an extended nonce: XChaCha20-Poly1305. …
Authenticated encryption | Libsodium documentation
The crypto_secretbox_easy() function encrypts a message m whose length is mlen bytes, with a key k and a nonce n. k should be crypto_secretbox_KEYBYTES bytes and n should be …
Quickstart and FAQ | Libsodium documentation
The available algorithms are the same on all supported platforms, input and output formats are also identical on all platforms, and bindings for various programming languages tend to leverage the …
Padding | Libsodium documentation
It supports arbitrary block sizes, ensures that the padding data are checked for computing the unpadded length, and is more resistant to some classes of attacks than other standard padding algorithms.
doc.libsodium.org
* AEGIS was added in libsodium version 1.0.19. * [The AEGIS Family Of Authenticated Encryption Algorithms](https://datatracker.ietf.org/doc/draft-irtf-cfrg-aegis-aead) - AEGIS specification * …
ChaCha20 | Libsodium documentation
ChaCha20 is a stream cipher developed by Daniel J. Bernstein. Its original design expands a 256-bit key into 2^64 randomly accessible streams, each containing 2^64 randomly accessible 64-byte (512 bits) …
AEGIS-256 | Libsodium documentation
AEGIS-256 is a modern AES-based cipher with unique properties making it easier and safer to use than common alternatives: