NSec.Cryptography 25.4.0

NSec.Cryptography

NSec is a cryptographic library for .NET based on libsodium. It aims to be easy to use, secure by default, fast, and agile.

Getting Started

To get started with NSec, install the package via NuGet:

dotnet add package NSec.Cryptography

For more detailed documentation, usage examples, and API references, please visit the project homepage.

Documentation

Class Algorithms
AeadAlgorithm Class AEGIS-128L
AEGIS-256
AES256-GCM
ChaCha20-Poly1305
XChaCha20-Poly1305
HashAlgorithm Class BLAKE2b (unkeyed)
SHA-256
SHA-512
KeyAgreementAlgorithm Class X25519
KeyDerivationAlgorithm2 Class HKDF-SHA-256
HKDF-SHA-512
MacAlgorithm Class BLAKE2b (keyed)
HMAC-SHA-256
HMAC-SHA-512
PasswordBasedKeyDerivationAlgorithm Class Argon2id
scrypt
SignatureAlgorithm Class Ed25519
SignatureAlgorithm2 Class Ed25519ph

See the API reference for more information.

Supported Platforms

NSec is intended to run on the following platforms. Please note, not all of these platforms have been tested.

-x64 -x86 -arm64 -arm
android-
ios-
linux-
linux-musl-
maccatalyst-
osx-
tvos-
win-

See the installation instructions for more information, particularly regarding hardware and software requirements.

Showing the top 20 packages that depend on NSec.Cryptography.

Packages Downloads
Fido2
FIDO2 .NET library (WebAuthn)
5

.NET 8.0

.NET 8.0

.NET 8.0

.NET 8.0

Version Downloads Last updated
26.1.0-preview.1 0 01/06/2026
25.4.0 5 01/08/2026
25.3.0-preview.4 0 03/30/2025
25.2.0-preview.3 0 02/01/2025
24.9.0-preview.2 0 09/08/2024
24.5.0-preview.1 0 05/04/2024
24.4.0 0 04/27/2024
23.9.0-preview.3 0 09/24/2023
23.6.0-preview.2 0 06/17/2023
23.5.0-preview.1 0 05/14/2023
22.4.0 0 04/30/2022
22.4.0-preview3 0 04/03/2022
21.11.0-preview2 0 11/13/2021
20.11.0-preview1 0 11/14/2020
20.2.0 0 03/01/2020
20.1.0-preview2 0 01/26/2020
19.12.0-preview1 0 12/31/2019
19.5.0 0 05/19/2019
19.4.0-preview2 0 04/13/2019
19.1.0-preview1 0 01/20/2019
18.6.0 0 06/12/2018
18.5.0-preview3 0 05/08/2018
18.4.0-preview2 0 04/12/2018
18.2.0-preview1 0 02/28/2018