There is a newer version of this package available.
See the version list below for details.

Requires NuGet 4.0 or higher.

dotnet add package libsodium --version
NuGet\Install-Package libsodium -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="libsodium" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add libsodium --version
#r "nuget: libsodium,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install libsodium as a Cake Addin
#addin nuget:?package=libsodium&version=

// Install libsodium as a Cake Tool
#tool nuget:?package=libsodium&version=

Internal implementation package not meant for direct consumption. Please do not reference directly.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (26)

Showing the top 5 NuGet packages that depend on libsodium:

Package Downloads

libsodium for .net core


Provides modern cryptographic algorithm implementations for .NET Core based on libsodium. Commonly Used Types: NSec.Cryptography.Aes256Gcm NSec.Cryptography.Blake2b NSec.Cryptography.Chacha20Poly1305 NSec.Cryptography.Ed25519 NSec.Cryptography.HkdfSha256 NSec.Cryptography.X25519


Native API binding for libsodium.


A secure cryptographic library


libsodium for .net core

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on libsodium:

Repository Stars
A modern and easy-to-use cryptographic library for .NET 6+ based on libsodium
A simple, modern, and secure encryption and signing tool that aims to be a better version of age and Minisign.
Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 6.0
.NET Standard 1.3 implementation of the Noise Protocol Framework (revision 33 of the spec)
libsodium for .NET - A secure cryptographic library
Version Downloads Last updated 25,194 12/11/2022 425,422 3/29/2022 31,838 6/13/2021
1.0.18 2,025,980 1/20/2020 395,135 4/22/2019
1.0.17 122,372 1/16/2019
1.0.16 702,528 12/20/2017
1.0.15 18,203 10/2/2017
1.0.14 1,286 9/24/2017
1.0.13-preview-01 1,007 8/22/2017
1.0.12-preview-01 5,503 7/13/2017