Soenneker.Hashing.Argon2 3.0.133

Prefix Reserved
dotnet add package Soenneker.Hashing.Argon2 --version 3.0.133                
NuGet\Install-Package Soenneker.Hashing.Argon2 -Version 3.0.133                
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.Argon2" Version="3.0.133" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Hashing.Argon2 --version 3.0.133                
#r "nuget: Soenneker.Hashing.Argon2, 3.0.133"                
#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 Soenneker.Hashing.Argon2 as a Cake Addin
#addin nuget:?package=Soenneker.Hashing.Argon2&version=3.0.133

// Install Soenneker.Hashing.Argon2 as a Cake Tool
#tool nuget:?package=Soenneker.Hashing.Argon2&version=3.0.133                

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.Argon2

A utility library for Argon2 hashing and verification

Features

  • Password Hashing: Generates a secure, Base64-encoded hash for a plaintext password.
  • Password Verification: Verifies a plaintext password against a hashed value.
  • Fully customizable parameters for salt size, hash size, iterations, memory usage, and parallelism.

Installation

dotnet add package Soenneker.Hashing.Argon2

Usage

1. Hashing a Password
string password = "SecurePassword123";
string hash = await Argon2HashingUtil.Hash(password);

// Result: A Base64-encoded hash string
Console.WriteLine(hash);
2. Verifying a Password
string password = "SecurePassword123";
string hash = await Argon2HashingUtil.Hash(password);

bool isValid = await Argon2HashingUtil.Verify(password, hash);

// Result: True if the password matches the hash
Console.WriteLine(isValid ? "Password is valid!" : "Invalid password.");
3. Custom Parameters
string password = "CustomPassword";
int saltSize = 32;       // Custom salt size (bytes)
int hashSize = 64;       // Custom hash size (bytes)
int iterations = 8;      // Custom iteration count
int memorySize = 131072; // Custom memory size (KB)
int parallelism = 4;     // Custom thread count

string hash = await Argon2HashingUtil.Hash(password, saltSize, hashSize, iterations, memorySize, parallelism);
bool isValid = await Argon2HashingUtil.Verify(password, hash, saltSize, hashSize, iterations, memorySize, parallelism);

Default Parameters

  • Salt Size: 16 bytes
  • Hash Size: 32 bytes
  • Iterations: 4
  • Memory Size: 65536 KB
  • Parallelism: 2
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
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
3.0.133 0 1/2/2025
3.0.132 0 1/2/2025
3.0.131 0 1/2/2025
3.0.130 0 1/2/2025
3.0.129 0 1/2/2025
3.0.128 40 1/1/2025
3.0.127 44 1/1/2025
3.0.126 40 1/1/2025
3.0.125 43 1/1/2025
3.0.124 45 1/1/2025
3.0.123 41 1/1/2025
3.0.122 43 1/1/2025
3.0.121 42 1/1/2025
3.0.120 44 1/1/2025
3.0.119 42 1/1/2025
3.0.118 49 1/1/2025
3.0.117 55 1/1/2025
3.0.116 68 12/31/2024
3.0.115 58 12/31/2024
3.0.114 64 12/31/2024
3.0.113 57 12/31/2024
3.0.112 58 12/31/2024
3.0.111 64 12/31/2024
3.0.110 66 12/31/2024
3.0.109 67 12/31/2024
3.0.108 69 12/31/2024
3.0.107 66 12/31/2024
3.0.106 75 12/31/2024
3.0.105 67 12/31/2024
3.0.104 68 12/31/2024
3.0.103 68 12/31/2024
3.0.102 68 12/31/2024
3.0.101 63 12/31/2024
3.0.100 66 12/31/2024
3.0.99 70 12/31/2024
3.0.98 65 12/31/2024
3.0.97 71 12/30/2024
3.0.96 67 12/30/2024
3.0.95 74 12/28/2024
3.0.94 70 12/28/2024
3.0.93 77 12/28/2024
3.0.92 74 12/28/2024
3.0.91 67 12/28/2024
3.0.90 73 12/27/2024
3.0.89 80 12/27/2024
3.0.88 72 12/27/2024
3.0.87 80 12/24/2024
3.0.86 69 12/24/2024
3.0.85 65 12/24/2024
3.0.84 72 12/24/2024
3.0.83 69 12/24/2024
3.0.82 74 12/24/2024
3.0.81 69 12/24/2024
3.0.80 68 12/24/2024
3.0.79 70 12/24/2024
3.0.78 76 12/24/2024
3.0.77 70 12/24/2024
3.0.76 71 12/24/2024
3.0.75 68 12/24/2024
3.0.74 68 12/24/2024
3.0.73 74 12/24/2024
3.0.72 67 12/24/2024
3.0.71 67 12/23/2024
3.0.70 72 12/23/2024
3.0.69 75 12/23/2024
3.0.68 73 12/23/2024
3.0.67 75 12/23/2024
3.0.66 69 12/23/2024
3.0.65 68 12/23/2024
3.0.64 74 12/23/2024
3.0.63 74 12/23/2024
3.0.62 66 12/23/2024
3.0.61 64 12/23/2024
3.0.60 82 12/22/2024
3.0.59 71 12/22/2024
3.0.58 70 12/22/2024
3.0.57 83 12/22/2024
3.0.56 68 12/22/2024
3.0.55 69 12/22/2024
3.0.54 79 12/22/2024
3.0.53 76 12/22/2024
3.0.52 71 12/22/2024
3.0.51 71 12/22/2024
3.0.50 79 12/22/2024
3.0.49 68 12/22/2024
3.0.48 78 12/22/2024
3.0.47 85 12/21/2024
3.0.46 73 12/21/2024
3.0.45 73 12/21/2024
3.0.44 73 12/21/2024
3.0.43 78 12/21/2024
3.0.42 72 12/21/2024
3.0.41 76 12/21/2024
3.0.40 70 12/21/2024
3.0.39 82 12/21/2024
3.0.38 73 12/21/2024
3.0.37 76 12/21/2024
3.0.36 71 12/21/2024
3.0.35 78 12/21/2024
3.0.34 81 12/21/2024
3.0.33 71 12/21/2024
3.0.32 76 12/20/2024
3.0.31 80 12/20/2024
3.0.30 83 12/20/2024
3.0.29 71 12/20/2024
3.0.28 70 12/20/2024
3.0.27 84 12/20/2024
3.0.26 65 12/20/2024
3.0.25 65 12/20/2024
3.0.24 79 12/20/2024
3.0.23 73 12/20/2024
3.0.22 80 12/20/2024
3.0.21 74 12/19/2024
3.0.20 70 12/19/2024
3.0.19 73 12/19/2024
3.0.18 70 12/19/2024
3.0.17 65 12/19/2024
3.0.16 73 12/19/2024
3.0.15 71 12/19/2024
3.0.14 72 12/19/2024
3.0.13 79 12/19/2024
3.0.12 71 12/19/2024
3.0.11 73 12/18/2024
3.0.9 85 12/17/2024
3.0.8 71 12/17/2024
3.0.7 79 12/17/2024
3.0.6 82 12/16/2024
3.0.5 84 12/16/2024
3.0.4 85 12/11/2024
3.0.3 95 12/11/2024
3.0.2 86 12/10/2024
3.0.1 79 12/10/2024