Skip to main content
NSec.Cryptography package icon

NSec.Cryptography

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

Total Downloads
14.1M
14,092,413
Published
Feb 1, 2025
Latest stable version

Install

.NET CLI
dotnet add package NSec.Cryptography --version 25.2.0-preview.3
Package Manager Console
Install-Package NSec.Cryptography -Version 25.2.0-preview.3
PackageReference
<PackageReference Include="NSec.Cryptography" Version="25.2.0-preview.3" />

Frameworks

net8.0 net8.0-ios18.0 net8.0-maccatalyst18.0 net8.0-tvos18.0

Dependencies

[1.0.20.1, 1.0.21)
libsodium
net8.0-ios18.0
[1.0.20.1, 1.0.21)
libsodium
net8.0-maccatalyst18.0
[1.0.20.1, 1.0.21)
libsodium
net8.0-tvos18.0
[1.0.20.1, 1.0.21)

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.