NSec.Cryptography 24.9.0-preview.2

This is a prerelease version of NSec.Cryptography.

Requires NuGet 4.0 or higher.

dotnet add package NSec.Cryptography --version 24.9.0-preview.2                
NuGet\Install-Package NSec.Cryptography -Version 24.9.0-preview.2                
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="NSec.Cryptography" Version="24.9.0-preview.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NSec.Cryptography --version 24.9.0-preview.2                
#r "nuget: NSec.Cryptography, 24.9.0-preview.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NSec.Cryptography as a Cake Addin
#addin nuget:?package=NSec.Cryptography&version=24.9.0-preview.2&prerelease

// Install NSec.Cryptography as a Cake Tool
#tool nuget:?package=NSec.Cryptography&version=24.9.0-preview.2&prerelease                

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.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios17.5 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst17.5 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-tvos17.5 is compatible.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

  • net8.0-ios17.5

  • net8.0-maccatalyst17.5

  • net8.0-tvos17.5

NuGet packages (43)

Showing the top 5 NuGet packages that depend on NSec.Cryptography:

Package Downloads
Fido2

FIDO2 .NET library (WebAuthn)

Pulsar.Client

.NET client library for Apache Pulsar

HQ

This package contains the full-stack build for HQ.io.

stellar-dotnet-sdk

The .NET Stellar SDK facilitates client integration with the Stellar Horizon API server and submission of Stellar transactions. It has two main uses: querying Horizon and building, signing, and submitting transactions to the Stellar network.

SaxonCS

SaxonCS is a high-performance XSLT 3.0 processor. It conforms with the latest W3C specifications (notably XSLT 3.0, XQuery 3.1, and XPath 3.1).

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on NSec.Cryptography:

Repository Stars
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
passwordless-lib/fido2-net-lib
FIDO2 .NET library for FIDO2 / WebAuthn Attestation and Assertion using .NET
Spreads/Spreads
Series and Panels for Real-time and Exploratory Analysis of Data Streams
Texnomic/SecureDNS
Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 8.0
securefolderfs-community/SecureFolderFS
Powerful, secure, modern way to keep your files protected.
Version Downloads Last updated
24.9.0-preview.2 195 9/8/2024
24.5.0-preview.1 470 5/4/2024
24.4.0 286,647 4/27/2024
23.9.0-preview.3 29,614 9/24/2023
23.6.0-preview.2 3,882 6/17/2023
23.5.0-preview.1 5,481 5/14/2023
22.4.0 1,908,880 4/30/2022
22.4.0-preview3 926 4/3/2022
21.11.0-preview2 2,105 11/13/2021
20.11.0-preview1 18,232 11/14/2020
20.2.0 1,593,131 3/1/2020
20.1.0-preview2 1,427 1/26/2020
19.12.0-preview1 1,523 12/31/2019
19.5.0 558,273 5/19/2019
19.4.0-preview2 5,614 4/13/2019
19.1.0-preview1 2,515 1/20/2019
18.6.0 100,787 6/12/2018
18.5.0-preview3 2,440 5/8/2018
18.4.0-preview2 1,552 4/12/2018
18.2.0-preview1 2,461 2/28/2018