NSec.Cryptography 25.2.0-preview.3
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.
https://nsec.rocks/releases
| Version | Downloads | Last updated |
|---|---|---|
| 25.4.0 | 12 | 06/28/2025 |
| 25.3.0-preview.4 | 4 | 06/28/2025 |
| 25.2.0-preview.3 | 4 | 06/28/2025 |
| 24.9.0-preview.2 | 4 | 06/28/2025 |
| 24.5.0-preview.1 | 5 | 06/28/2025 |
| 24.4.0 | 4 | 06/28/2025 |
| 23.9.0-preview.3 | 4 | 06/28/2025 |
| 23.6.0-preview.2 | 4 | 06/28/2025 |
| 23.5.0-preview.1 | 4 | 06/28/2025 |
| 22.4.0 | 21 | 06/12/2025 |
| 22.4.0-preview3 | 4 | 06/28/2025 |
| 21.11.0-preview2 | 4 | 06/28/2025 |
| 20.11.0-preview1 | 4 | 06/28/2025 |
| 20.2.0 | 4 | 06/28/2025 |
| 20.1.0-preview2 | 4 | 06/28/2025 |
| 19.12.0-preview1 | 5 | 06/28/2025 |
| 19.5.0 | 4 | 06/28/2025 |
| 19.4.0-preview2 | 4 | 06/28/2025 |
| 19.1.0-preview1 | 4 | 06/28/2025 |
| 18.6.0 | 5 | 06/28/2025 |
| 18.5.0-preview3 | 4 | 06/28/2025 |
| 18.4.0-preview2 | 4 | 06/28/2025 |
| 18.2.0-preview1 | 4 | 06/28/2025 |