Sodium
Functions
Authenticated Encryption with Associated Data (decrypt) AES-256-GCM
Authenticated Encryption with Associated Data (encrypt) AES-256-GCM
Can you access AES-256-GCM? This is only available if you have supported hardware.
Authenticated Encryption with Associated Data (decrypt) ChaCha20 + Poly1305
Authenticated Encryption with Associated Data (encrypt) ChaCha20 + Poly1305
Secret-key message authentication HMAC SHA-512/256
Secret-key message verification HMAC SHA-512/256
Public-key authenticated encryption (encrypt) X25519 + Xsalsa20 + Poly1305
Create an X25519 keypair from an X25519 secret key and X25519 public key
Public-key authenticated encryption (decrypt) X25519 + Xsalsa20 + Poly1305
Get an X25519 public key from an X25519 keypair
Derive an X25519 public key from an X25519 secret key
Anonymous public-key encryption (encrypt) X25519 + Xsalsa20 + Poly1305 + BLAKE2b
Anonymous public-key encryption (decrypt) X25519 + Xsalsa20 + Poly1305 + BLAKE2b
Extract the X25519 secret key from an X25519 keypair
Derive an X25519 keypair for use with the crypto_box API from a seed
Fast and secure cryptographic hash
Get the final hash BLAKE2b
Create a new hash state (e.g. to use for streams) BLAKE2b
Update the hash state with some data BLAKE2b
Elliptic Curve Diffie Hellman Key Exchange X25519
Secure password-based key derivation function Argon2i
Secure password-based key derivation function Scrypt
Get a formatted password hash (for storage) Scrypt
Verify a password against a hash Scrypt
Get a formatted password hash (for storage) Argon2i
Verify a password against a hash Argon2i
Elliptic Curve Diffie Hellman over Curve25519 X25519
Scalar multiplication of the base point and your key
Authenticated secret-key encryption (encrypt) Xsals20 + Poly1305
Authenticated secret-key encryption (decrypt) Xsals20 + Poly1305
A short keyed hash suitable for data structures SipHash-2-4
Digital Signature (detached) Ed25519
Convert an Ed25519 public key to an X25519 public key
Convert an Ed25519 secret key to an X25519 secret key
Generate an Ed25519 keypair for use with the crypto_sign API
Create an Ed25519 keypair from an Ed25519 secret key + Ed25519 public key
Verify a signed message and return the plaintext
Get the public key from an Ed25519 keypair
Derive an Ed25519 public key from an Ed25519 secret key
Get the secret key from an Ed25519 keypair
Derive an Ed25519 keypair for use with the crypto_sign API from a seed
Verify a detached signature
Create a keystream from a key and nonce Xsalsa20
Encrypt a message using a stream cipher Xsalsa20
Generate an unbiased random integer between 0 and a specified value /dev/urandom