Soenneker.Hashing.Argon2 3.0.226

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Hashing.Argon2 --version 3.0.226                
NuGet\Install-Package Soenneker.Hashing.Argon2 -Version 3.0.226                
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.226" />                
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.226                
#r "nuget: Soenneker.Hashing.Argon2, 3.0.226"                
#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.226

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

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.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
3.0.240 0 1/20/2025
3.0.239 0 1/20/2025
3.0.238 0 1/20/2025
3.0.237 0 1/20/2025
3.0.236 0 1/20/2025
3.0.235 0 1/20/2025
3.0.234 0 1/20/2025
3.0.233 0 1/20/2025
3.0.232 0 1/20/2025
3.0.231 0 1/20/2025
3.0.230 0 1/20/2025
3.0.229 0 1/19/2025
3.0.228 0 1/19/2025
3.0.227 0 1/19/2025
3.0.226 0 1/19/2025
3.0.225 0 1/19/2025
3.0.224 0 1/19/2025
3.0.223 0 1/19/2025
3.0.222 21 1/19/2025
3.0.221 19 1/19/2025
3.0.220 19 1/19/2025
3.0.219 30 1/18/2025
3.0.218 27 1/18/2025
3.0.217 28 1/18/2025
3.0.216 29 1/18/2025
3.0.215 29 1/18/2025
3.0.214 30 1/18/2025
3.0.213 31 1/18/2025
3.0.212 29 1/18/2025
3.0.211 27 1/18/2025
3.0.210 34 1/17/2025
3.0.209 35 1/17/2025
3.0.208 35 1/17/2025
3.0.207 31 1/17/2025
3.0.206 33 1/17/2025
3.0.205 32 1/17/2025
3.0.204 37 1/17/2025
3.0.203 36 1/17/2025
3.0.202 31 1/17/2025
3.0.201 38 1/16/2025
3.0.200 35 1/16/2025
3.0.199 32 1/16/2025
3.0.198 37 1/16/2025
3.0.197 40 1/16/2025
3.0.196 38 1/16/2025
3.0.195 31 1/16/2025
3.0.194 32 1/16/2025
3.0.193 30 1/16/2025
3.0.192 34 1/16/2025
3.0.191 32 1/16/2025
3.0.190 33 1/16/2025
3.0.189 34 1/16/2025
3.0.188 34 1/15/2025
3.0.187 31 1/15/2025
3.0.186 33 1/15/2025
3.0.185 40 1/15/2025
3.0.184 36 1/15/2025
3.0.183 36 1/15/2025
3.0.182 32 1/15/2025
3.0.181 34 1/15/2025
3.0.180 34 1/15/2025
3.0.179 35 1/15/2025
3.0.178 29 1/15/2025
3.0.177 28 1/15/2025
3.0.176 29 1/15/2025
3.0.175 13 1/15/2025
3.0.174 13 1/15/2025
3.0.173 10 1/15/2025
3.0.172 11 1/15/2025
3.0.171 7 1/15/2025
3.0.170 7 1/15/2025
3.0.169 7 1/15/2025
3.0.168 7 1/14/2025
3.0.167 7 1/14/2025
3.0.166 5 1/14/2025
3.0.165 5 1/14/2025
3.0.164 5 1/14/2025
3.0.163 34 1/13/2025
3.0.162 31 1/13/2025
3.0.161 33 1/13/2025
3.0.160 29 1/13/2025
3.0.159 31 1/13/2025
3.0.158 36 1/13/2025
3.0.157 33 1/11/2025
3.0.156 31 1/11/2025
3.0.155 34 1/11/2025
3.0.154 32 1/11/2025
3.0.153 33 1/11/2025
3.0.152 31 1/11/2025
3.0.151 31 1/10/2025
3.0.150 31 1/10/2025
3.0.149 37 1/10/2025
3.0.148 33 1/10/2025
3.0.147 32 1/10/2025
3.0.146 33 1/10/2025
3.0.145 33 1/10/2025
3.0.144 31 1/10/2025
3.0.143 108 1/3/2025
3.0.142 104 1/3/2025
3.0.141 107 1/3/2025
3.0.140 106 1/3/2025
3.0.139 85 1/3/2025
3.0.138 72 1/3/2025
3.0.137 79 1/3/2025
3.0.136 79 1/3/2025
3.0.135 88 1/2/2025
3.0.134 86 1/2/2025
3.0.133 93 1/2/2025
3.0.132 89 1/2/2025
3.0.131 83 1/2/2025
3.0.130 81 1/2/2025
3.0.129 89 1/2/2025
3.0.128 97 1/1/2025
3.0.127 94 1/1/2025
3.0.126 91 1/1/2025
3.0.125 92 1/1/2025
3.0.124 91 1/1/2025
3.0.123 88 1/1/2025
3.0.122 92 1/1/2025
3.0.121 89 1/1/2025
3.0.120 90 1/1/2025
3.0.119 86 1/1/2025
3.0.118 81 1/1/2025
3.0.117 91 1/1/2025
3.0.116 93 12/31/2024
3.0.115 85 12/31/2024
3.0.114 88 12/31/2024
3.0.113 86 12/31/2024
3.0.112 81 12/31/2024
3.0.111 80 12/31/2024
3.0.110 82 12/31/2024
3.0.109 101 12/31/2024
3.0.108 100 12/31/2024
3.0.107 97 12/31/2024
3.0.106 104 12/31/2024
3.0.105 97 12/31/2024
3.0.104 76 12/31/2024
3.0.103 76 12/31/2024
3.0.102 76 12/31/2024
3.0.101 71 12/31/2024
3.0.100 73 12/31/2024
3.0.99 78 12/31/2024
3.0.98 81 12/31/2024
3.0.97 76 12/30/2024
3.0.96 73 12/30/2024
3.0.95 80 12/28/2024
3.0.94 76 12/28/2024
3.0.93 83 12/28/2024
3.0.92 80 12/28/2024
3.0.91 74 12/28/2024
3.0.90 78 12/27/2024
3.0.89 86 12/27/2024
3.0.88 79 12/27/2024
3.0.87 86 12/24/2024
3.0.86 74 12/24/2024
3.0.85 71 12/24/2024
3.0.84 78 12/24/2024
3.0.83 75 12/24/2024
3.0.82 79 12/24/2024
3.0.81 74 12/24/2024
3.0.80 74 12/24/2024
3.0.79 75 12/24/2024
3.0.78 82 12/24/2024
3.0.77 75 12/24/2024
3.0.76 77 12/24/2024
3.0.75 74 12/24/2024
3.0.74 74 12/24/2024
3.0.73 79 12/24/2024
3.0.72 73 12/24/2024
3.0.71 73 12/23/2024
3.0.70 78 12/23/2024
3.0.69 80 12/23/2024
3.0.68 78 12/23/2024
3.0.67 81 12/23/2024
3.0.66 75 12/23/2024
3.0.65 73 12/23/2024
3.0.64 79 12/23/2024
3.0.63 83 12/23/2024
3.0.62 73 12/23/2024
3.0.61 74 12/23/2024
3.0.60 88 12/22/2024
3.0.59 77 12/22/2024
3.0.58 76 12/22/2024
3.0.57 88 12/22/2024
3.0.56 73 12/22/2024
3.0.55 74 12/22/2024
3.0.54 84 12/22/2024
3.0.53 82 12/22/2024
3.0.52 77 12/22/2024
3.0.51 77 12/22/2024
3.0.50 85 12/22/2024
3.0.49 75 12/22/2024
3.0.48 91 12/22/2024
3.0.47 91 12/21/2024
3.0.46 80 12/21/2024
3.0.45 80 12/21/2024
3.0.44 80 12/21/2024
3.0.43 85 12/21/2024
3.0.42 79 12/21/2024
3.0.41 82 12/21/2024
3.0.40 76 12/21/2024
3.0.39 89 12/21/2024
3.0.38 80 12/21/2024
3.0.37 83 12/21/2024
3.0.36 78 12/21/2024
3.0.35 85 12/21/2024
3.0.34 88 12/21/2024
3.0.33 78 12/21/2024
3.0.32 83 12/20/2024
3.0.31 87 12/20/2024
3.0.30 90 12/20/2024
3.0.29 78 12/20/2024
3.0.28 77 12/20/2024
3.0.27 92 12/20/2024
3.0.26 72 12/20/2024
3.0.25 72 12/20/2024
3.0.24 86 12/20/2024
3.0.23 80 12/20/2024
3.0.22 87 12/20/2024
3.0.21 81 12/19/2024
3.0.20 77 12/19/2024
3.0.19 80 12/19/2024
3.0.18 77 12/19/2024
3.0.17 72 12/19/2024
3.0.16 80 12/19/2024
3.0.15 78 12/19/2024
3.0.14 80 12/19/2024
3.0.13 87 12/19/2024
3.0.12 79 12/19/2024
3.0.11 79 12/18/2024
3.0.9 90 12/17/2024
3.0.8 77 12/17/2024
3.0.7 84 12/17/2024
3.0.6 87 12/16/2024
3.0.5 90 12/16/2024
3.0.4 93 12/11/2024
3.0.3 99 12/11/2024
3.0.2 93 12/10/2024
3.0.1 93 12/10/2024