Easy-to-use, portable cryptography library
open sourceISCfree
libsodium (Sodium) is an easy-to-use C library for cryptography: authenticated encryption, public-key encryption and key exchange, digital signatures, hashing, secure password hashing and key derivation, with safe defaults so developers don't have to choose algorithms. It's a portable, cross-compilable and packageable fork of NaCl that keeps its API and extends it. It's portable and cross-compilable, with support for Windows (MinGW and Visual Studio, x86, x64 and arm64), iOS, Android, JavaScript and WebAssembly, and bindings exist for most languages.
Problems it solves
- encrypt data in my app without choosing cryptographic algorithms myself
- hash user passwords securely with Argon2
- sign and verify messages with public-key signatures
- a portable crypto library that works on iOS, Android and WebAssembly
- public-key encryption between two parties in C
Features
- authenticated and public-key encryption
- key exchange
- digital signatures
- secure password hashing
- generic hashing and key derivation
- API compatible with NaCl
- Windows, iOS, Android, JavaScript and WebAssembly support
Alternatives
The same job
These do what libsodium does.
- Tink Google's cryptography library with APIs that are hard to misuse
- OpenSSL General purpose TLS and crypto library
- Google Cloud KMS Create and manage cryptographic keys, including hardware-backed Cloud HSM keys, in Google Cloud
- Cryptomator Client-side encryption for your cloud storage
