jedisct1/libsodium logo

jedisct1/libsodium

Free

A modern, portable, easy to use crypto library.

FreeFree tier
Type
Open Source

About jedisct1/libsodium

Libsodium is a modern, portable, easy-to-use software library that provides a wide range of cryptographic operations including encryption, decryption, digital signatures, and secure password hashing. It is a fork of NaCl that maintains API compatibility while extending functionality to improve usability and simplify secure application development. The library supports cross-platform environments including Windows (MinGW and Visual Studio, x86, x64, arm64), iOS, Android, JavaScript, and WebAssembly, and is designed to be cross-compilable, installable, and packageable. It uses a two-tier release system with point releases for new features and stable maintenance updates, and security fixes are immediately pushed to the stable branch. Licensed under the ISC license, libsodium is actively maintained with over 13,800 stars on GitHub and a community of contributors.

Key Features

Encryption and decryption with modern algorithms
Digital signatures for data authenticity
Secure password hashing
Cross-platform support: Windows (MinGW, Visual Studio, x86, x64, arm64), iOS, Android, JavaScript, WebAssembly
User-friendly API designed for easy integration
Portable, cross-compilable, installable, and packageable fork of NaCl
API compatibility with NaCl with extended functionality
Two-tier release system: point releases for new features and stable maintenance updates
Security fixes immediately applied to stable branch

Pros & Cons

Pros
  • Modern cryptographic algorithms ensure strong security
  • Cross-platform compatibility supports a wide range of environments
  • Easy to integrate with a user-friendly API
  • Open source under permissive ISC license
  • Active development with frequent releases and security updates
  • Large community with over 13,800 GitHub stars and 1,900 forks
Cons
  • Not an AI tool; designed for cryptographic operations only
  • Requires careful implementation to avoid security vulnerabilities
  • Does not provide built-in key management or high-level secure protocols

Best For

Securely encrypting and decrypting data in applicationsCreating and verifying digital signaturesHashing passwords for secure storageBuilding secure communications protocolsDeveloping cross-platform cryptographic applications

FAQ

What is libsodium?
Libsodium is a modern, portable, easy-to-use software library for encryption, decryption, digital signatures, and password hashing. It is a fork of NaCl that improves usability and simplifies secure application development.
What platforms does libsodium support?
Libsodium supports Windows (MinGW and Visual Studio on x86, x64, and arm64), iOS, Android, JavaScript, and WebAssembly.
What license is libsodium released under?
Libsodium is distributed under the ISC license.