Soenneker.Hashing.Phc 11.0.30

Prefix Reserved
dotnet add package Soenneker.Hashing.Phc --version 11.0.30
                    
NuGet\Install-Package Soenneker.Hashing.Phc -Version 11.0.30
                    
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="Soenneker.Hashing.Phc" Version="11.0.30" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Hashing.Phc" Version="11.0.30" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Hashing.Phc" />
                    
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 Soenneker.Hashing.Phc --version 11.0.30
                    
#r "nuget: Soenneker.Hashing.Phc, 11.0.30"
                    
#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 Soenneker.Hashing.Phc@11.0.30
                    
#: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=Soenneker.Hashing.Phc&version=11.0.30
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Hashing.Phc&version=11.0.30
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Hashing.Phc

A dependency-free .NET library for formatting and parsing Password Hashing Competition (PHC) strings.

Installation

dotnet add package Soenneker.Hashing.Phc

Usage

using Soenneker.Hashing.Phc;

PhcString value = PhcFormatter.Parse(
    "$argon2id$v=19$m=65536,t=3,p=4$c29tZXNhbHQ$YW5kYWZha2VoYXNo");

value.TryGetParameter("m", out string? memoryCost);
string encoded = value.ToString();
bool valid = PhcFormatter.IsValid(encoded);

Build a PHC string while preserving explicit parameter order:

var value = new PhcString(
    identifier: "argon2id",
    version: 19,
    parameters:
    [
        new("m", "65536"),
        new("t", "3"),
        new("p", "4")
    ],
    salt: "c29tZXNhbHQ",
    hash: "YW5kYWZha2VoYXNo");

string encoded = PhcFormatter.Format(value);

TryParse and TryFormat are available for failure-based and span-oriented call sites.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Hashing.Phc:

Package Downloads
Soenneker.Hashing.Argon2

A utility library for Argon2 hashing and verification

Soenneker.Hashing.Pbkdf2

A utility library for Pbkdf2 hashing and verification.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.30 950 11/11/2026
11.0.29 117 11/11/2026
11.0.28 2,297 11/2/2026
11.0.27 1,845 10/27/2026
11.0.26 737 10/26/2026
11.0.25 310 10/26/2026
4.0.23 3,296 10/14/2026
4.0.22 251 10/14/2026
4.0.21 96 10/14/2026
4.0.20 225 10/14/2026
4.0.14 171 10/12/2026
4.0.13 292 10/12/2026
4.0.12 397 10/11/2026
4.0.11 108 10/11/2026
4.0.10 4,981 9/29/2026
4.0.9 1,907 9/24/2026
4.0.8 109 9/24/2026
4.0.7 2,689 9/15/2026
4.0.6 123 9/15/2026
4.0.5 1,016 9/13/2026
Loading failed

Updated Soenneker.Utils.PooledStringBuilders to 11.0.46