A modern, portable, easy to use crypto library. https://libsodium.org
  • C 93.9%
  • Shell 1.8%
  • M4 1.5%
  • Assembly 1.2%
  • Makefile 0.6%
  • Other 0.9%
Find a file
Frank Denis 6a79fae4cb
Some checks are pending
CI / tcc (push) Waiting to run
CI / zig (push) Waiting to run
CI / regular (push) Waiting to run
CI / check-globals (push) Waiting to run
CI / other-comp (push) Waiting to run
CI / other-arch (push) Waiting to run
CI / wasi (push) Waiting to run
CI / aarch64-gcc (push) Waiting to run
CI / aarch64-gcc-crypto (push) Waiting to run
CI / aarch64-gcc-sha3 (push) Waiting to run
CI / android (push) Waiting to run
Update for zig 0.16
2026-03-12 18:50:01 +01:00
.github Update oss-fuzz 2026-03-08 16:48:25 +01:00
builds Merge branch 'master' of github.com:jedisct1/libsodium 2026-02-03 23:59:34 +01:00
ci/appveyor Add NEON optimizations for Argon2 2026-01-22 12:00:49 +01:00
dist-build Regen emscripten 2026-02-20 23:41:12 +01:00
m4 Downgrade ax_valgrind_check.m4 2025-12-08 04:54:06 +01:00
packaging/dotnet-core Bump dev 2026-01-07 23:28:39 +01:00
regen-msvc Add support for MSVC 2026 2025-11-18 12:10:59 +01:00
src Remove useless sodium_memzero, add one that makes sense 2026-03-08 15:27:35 +01:00
test Add further tests for ristretto255 hash to element from RFC9497 (#1516) 2026-02-27 13:29:37 +01:00
.gitignore Add .swival to .gitignore 2026-02-26 00:02:29 +01:00
appveyor.yml Bump dev 2026-01-07 23:28:39 +01:00
AUTHORS Replace the aegis256 implementation with the libaegis implementation 2023-09-09 20:20:54 +02:00
autogen.sh Remove build-aux if required 2026-01-05 23:51:42 +01:00
azure-pipelines.yml Try installing VS2019 manually 2026-01-07 23:18:39 +01:00
build.zig Update for zig 0.16 2026-03-12 18:50:01 +01:00
ChangeLog Update ChangeLog 2026-02-10 08:56:52 +01:00
CITATION.cff Add CITATION.cff 2023-04-14 23:25:06 +02:00
configure.ac Bump dev 2026-01-07 23:28:39 +01:00
lgtm.yml Use autogen.sh -s in lgtm 2020-06-18 19:36:31 +02:00
libsodium-uninstalled.pc.in Add -pthread to pkgconfig's Libs.private if enabled 2019-01-14 23:43:02 +01:00
libsodium.pc.in Add -pthread to pkgconfig's Libs.private if enabled 2019-01-14 23:43:02 +01:00
LICENSE 2026 2025-12-29 15:54:49 +01:00
logo.png Make the text logo slightly more readable in dark mode 2020-12-08 23:16:26 +01:00
Makefile.am Add forgotten distribution files 2024-05-25 14:15:07 +02:00
README.markdown Mention Windows arm64 2025-12-31 23:01:37 +01:00
THANKS Brad Barden (@IAMB) wrote bindings for Perl 2026-01-07 12:36:35 +01:00

GitHub CI Coverity Scan Build Status Azure build status CodeQL scan

libsodium

Sodium is an 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 portable, cross-compilable, installable, and packageable fork of NaCl. While maintaining API compatibility, libsodium extends functionality to improve usability and simplify the development of secure applications.


Key Features

  • Encryption & Decryption: Securely encrypt and decrypt data with modern algorithms.
  • Digital Signatures: Create and verify signatures to ensure data authenticity.
  • Cross-Platform Compatibility: Supported on Windows (MinGW and Visual Studio, x86, x64 and arm64), iOS, Android, JavaScript, and WebAssembly.
  • User-Friendly API: Designed to provide all core cryptographic operations while remaining easy to integrate into your projects.

Documentation


Versioning

libsodium uses a two-tier release system:

  • Point releases (e.g., 1.0.19, 1.0.20, 1.0.21) are tagged when new features are added or significant changes are made.
  • Stable releases are frequent maintainance updates between point releases. They fix minor issues while remaining fully compatible with their parent point release. No new features, no breaking changes.

If your application depends on a specific point release, stable updates are safe to apply. Security fixes go to the stable branch immediately, with a new point release tagged shortly after.


Contributors

Code Contributors

This project thrives thanks to the valuable contributions from our community. View all the contributors:

Contributors

Financial Contributors

Your financial support helps us sustain and further develop libsodium.

Individuals

Individual Contributors

Organizations

Support libsodium with your organization and gain visibility through your logo and website link.

Organization Contributor

License

This project is distributed under the ISC license.