Zhomfr.Hash.Argon2 0.7.0

dotnet add package Zhomfr.Hash.Argon2 --version 0.7.0
                    
NuGet\Install-Package Zhomfr.Hash.Argon2 -Version 0.7.0
                    
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="Zhomfr.Hash.Argon2" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zhomfr.Hash.Argon2" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Zhomfr.Hash.Argon2" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Zhomfr.Hash.Argon2 --version 0.7.0
                    
#r "nuget: Zhomfr.Hash.Argon2, 0.7.0"
                    
#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.
#:package Zhomfr.Hash.Argon2@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Zhomfr.Hash.Argon2&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Zhomfr.Hash.Argon2&version=0.7.0
                    
Install as a Cake Tool

Argon 2 Driver for Zhomfr.Hash.Abstractions

NuGet Status NuGet Downloads

⚠️ Warning: Active Development (< 1.0.0)

Prior to the release of stable version 1.0.0, this library follows SemVer for initial development. This means breaking changes may occur even in minor releases (0.x).

We strongly recommend pinning the package version in your .csproj to avoid unexpected build errors.

This library provides an Argon2 implementation of the Zhomfr.Hash.Abstractions hashing contract.

📦 Installation

Install package:

dotnet add package Zhomfr.Hash.Argon2

After register service in DI:

using Zhomfr.Hash.Abstractions;

builder.Services.AddDefaultHash<Argon2Hash, Argon2Config>();
builder.Services.AddKeyedHash<Argon2Hash, Argon2Config>("AwesomeKey");

Configuration Convention

All settings are located in appsettings.json under the Zhomfr:Hash section:

  • The default service uses the Zhomfr:Hash:Default subsection.
  • Keyed services use subsections where the name matches the service key, resulting in Zhomfr:Hash:KeyName.

Your appsettings.json file should follow this structure:

{
  "Zhomfr": {
    "Hash": {
      "Default": {
        "Secret": "some32CharacterAlphaNumericString",
        "Iterations": 10,
        "MemorySize": 65536,
        "DegreeOfParallelism": 4,
        "SaltSize": 16
      },
      "AwesomeKey": {
        "Secret": "some32CharacterAlphaNumericString",
        "Iterations": 10,
        "MemorySize": 65536,
        "DegreeOfParallelism": 4,
        "SaltSize": 16
      }
    }
  }
}

And use in your own code:

using Zhomfr.Hash.Abstractions;

public class MyAwesomeClass(IHash cache){}
public class MyAwesomeClass([FromKeyedServices("AwesomeKey")]IHash cache){}

For more details, see the documentation for Nuget or GitHub.

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 21 10/26/2026
0.6.0 49 10/24/2026