Skip to content

Sodium

FFI bindings for libsodium, providing authenticated encryption, hashing, signing, and key-derivation primitives.

All functions use pre-built libsodium binaries bundled with this package - no system installation is required.

Sodium.sys  :: Sys
Sodium.aes256gcm  :: Aes256gcm
Sodium.chacha20poly1305  :: Chacha20poly1305
Sodium.xchacha20poly1305  :: Xchacha20poly1305
Sodium.secretbox  :: Secretbox
Sodium.box  :: Box
Sodium.sign  :: Sign
Sodium.generichash  :: Generichash
Sodium.hash  :: Hash
Sodium.auth  :: Auth
Sodium.kdf  :: Kdf
Sodium.pwhash  :: Pwhash
Sodium.randombytes  :: Randombytes
Sodium.utils  :: Utils