A modern, portable, easy to use crypto library. https://libsodium.org
Find a file
Frank Denis c390510484
Some checks failed
CI / tcc (push) Has been cancelled
CI / zig (push) Has been cancelled
CI / regular (push) Has been cancelled
CI / check-globals (push) Has been cancelled
CI / other-comp (push) Has been cancelled
CI / other-arch (push) Has been cancelled
CI / android (push) Has been cancelled
Update for zig-current
2025-07-15 23:06:45 +02:00
.github Update mlugg/setup-zig 2025-06-06 12:00:10 +02:00
builds Fix buildbase.bat for ARM64: 2024-12-04 17:36:51 +01:00
ci/appveyor Bump dev version 2023-11-29 22:10:35 +01:00
dist-build Import dist-build/android-aar.sh readability 2025-02-20 15:36:43 +01:00
m4 Handle SIGPROT, CHERI's in-address space security exception 2023-09-12 21:02:18 +02:00
packaging/dotnet-core Add Android binaries to NuGet package (#1455) 2025-05-08 14:28:33 +02:00
regen-msvc New attempt to move Appveyor CI scripts to ci/appveyor 2023-09-11 11:42:54 +02:00
src Improve AES256-GCM performance on ARM 2025-05-21 23:11:26 +02:00
test tests/sodium_utils3: skip SIGSEGV check when tsan is enabled 2025-05-08 22:56:10 -06:00
.gitignore Revert "RFC9381 ECVRF implementation (#1188)" 2024-09-25 21:37:31 +02:00
appveyor.yml Bump dev version 2023-11-29 22:10:35 +01:00
AUTHORS Replace the aegis256 implementation with the libaegis implementation 2023-09-09 20:20:54 +02:00
autogen.sh Make sure config.sub and config.guess are executable (#1024) 2021-01-27 14:01:30 +01:00
azure-pipelines.yml Update msys2 2025-02-21 12:40:26 +01:00
build.zig Update for zig-current 2025-07-15 23:06:45 +02:00
ChangeLog Sync ChangeLog 2025-06-06 12:00:10 +02:00
CITATION.cff Add CITATION.cff 2023-04-14 23:25:06 +02:00
configure.ac Disable ssp on Solaris where people may use old toolchains 2024-08-11 15:06:04 +02: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 2025 2025-01-01 21:03:34 +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 Nits 2025-04-03 23:01:40 +02:00
THANKS + Alexander Ilin for Factor bindings 2018-12-25 10:25:23 +01:00

GitHub CI Windows build status 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, both x86 and x64), iOS, Android, JavaScript, and WebAssembly.
  • User-Friendly API: Designed to provide all core cryptographic operations while remaining easy to integrate into your projects.

Documentation

Detailed documentation is available online. It is generated from the libsodium-doc repository and requires JavaScript for full functionality:


Integrity Checking

For security and authenticity, please review the integrity checking instructions. These include the signing keys and methods to verify your installation:


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.