flutter_sodium library

Classes

ChaCha20Poly1305
The original ChaCha20-Poly1305 construction
ChaCha20Poly1305Ietf
The IETF variant of the ChaCha20-Poly1305 construction
CryptoAuth
Computes an authentication tag for a message and a secret key, and provides a way to verify that a given tag is valid for a given message and a key.
CryptoBox
Public-key authenticated encryption
CryptoSign
Computes a signature for a message using a secret key, and provides verification using a public key.
CryptoStream
Generate deterministic streams of random data based off a secret key and random nonce.
DetachedCipher
Detached cipher and associated authentication tag.
GenericHash
Computes a fixed-length fingerprint for an arbitrary long message using the BLAKE2b algorithm.
Hash
SHA-512 hash functions.
KeyDerivation
Derive secret subkeys from a single master key.
KeyExchange
Key exchange API, securely compute a set of shared keys.
KeyPair
Represents a secret key and a corresponding public key.
OnetimeAuth
Secret-key single-message authentication using Poly1305.
PasswordHash
Provides an Argon2 password hashing scheme implementation.
RandomBytes
Provides a set of functions to generate unpredictable data, suitable for creating secret keys
ScalarMult
Performs scalar multiplication of elliptic curve points
SealedBox
Anonymously send messages to a recipient given its public key.
SecretBox
Encrypts a message with a key and a nonce and computes an authentication tag.
SessionKeys
Represents a pair of shared keys. The shared secret key rx should be used by the client to receive data from the server, whereas tx should be used for data flowing in the opposite direction.
ShortHash
Computes short hashes using the SipHash-2-4 algorithm.
Sodium
SodiumException
XChaCha20Poly1305Ietf
The XChaCha20-Poly1305 construction

Enums

PasswordHashAlgorithm
Defines the supported password hashing algorithms.