Soenneker.Hashing.Argon2 3.0.420

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.420                
NuGet\Install-Package Soenneker.Hashing.Argon2 -Version 3.0.420                
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.420" />                
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.420                
#r "nuget: Soenneker.Hashing.Argon2, 3.0.420"                
#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.420

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

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.426 0 2/21/2025
3.0.425 0 2/21/2025
3.0.424 0 2/21/2025
3.0.423 0 2/21/2025
3.0.422 46 2/19/2025
3.0.421 44 2/19/2025
3.0.420 41 2/19/2025
3.0.419 42 2/19/2025
3.0.418 42 2/19/2025
3.0.417 53 2/19/2025
3.0.416 49 2/19/2025
3.0.415 56 2/19/2025
3.0.414 54 2/19/2025
3.0.413 50 2/19/2025
3.0.412 50 2/18/2025
3.0.411 50 2/18/2025
3.0.410 68 2/18/2025
3.0.409 68 2/18/2025
3.0.408 62 2/18/2025
3.0.407 54 2/18/2025
3.0.406 63 2/18/2025
3.0.405 65 2/14/2025
3.0.404 62 2/14/2025
3.0.403 65 2/14/2025
3.0.402 62 2/13/2025
3.0.401 59 2/13/2025
3.0.400 64 2/13/2025
3.0.399 64 2/12/2025
3.0.398 71 2/12/2025
3.0.397 68 2/12/2025
3.0.396 66 2/12/2025
3.0.395 69 2/12/2025
3.0.394 69 2/12/2025
3.0.393 66 2/12/2025
3.0.392 61 2/12/2025
3.0.391 69 2/12/2025
3.0.390 67 2/12/2025
3.0.389 70 2/11/2025
3.0.388 68 2/11/2025
3.0.387 69 2/11/2025
3.0.386 67 2/11/2025
3.0.385 69 2/11/2025
3.0.384 66 2/11/2025
3.0.383 64 2/11/2025
3.0.382 62 2/11/2025
3.0.381 63 2/11/2025
3.0.380 66 2/11/2025
3.0.379 62 2/11/2025
3.0.378 64 2/11/2025
3.0.377 67 2/11/2025
3.0.376 64 2/11/2025
3.0.375 67 2/11/2025
3.0.374 68 2/10/2025
3.0.373 66 2/10/2025
3.0.372 59 2/10/2025
3.0.371 65 2/10/2025
3.0.370 67 2/10/2025
3.0.369 68 2/10/2025
3.0.368 64 2/10/2025
3.0.367 68 2/10/2025
3.0.366 70 2/10/2025
3.0.365 60 2/10/2025
3.0.364 62 2/9/2025
3.0.363 60 2/9/2025
3.0.362 72 2/9/2025
3.0.361 66 2/9/2025
3.0.360 67 2/9/2025
3.0.359 68 2/9/2025
3.0.358 70 2/8/2025
3.0.357 72 2/8/2025
3.0.356 69 2/8/2025
3.0.355 68 2/8/2025
3.0.354 69 2/8/2025
3.0.353 64 2/8/2025
3.0.352 64 2/8/2025
3.0.351 66 2/8/2025
3.0.350 64 2/8/2025
3.0.349 68 2/7/2025
3.0.348 66 2/7/2025
3.0.347 67 2/7/2025
3.0.346 67 2/7/2025
3.0.345 70 2/7/2025
3.0.344 70 2/7/2025
3.0.343 66 2/7/2025
3.0.342 64 2/7/2025
3.0.341 71 2/7/2025
3.0.340 68 2/7/2025
3.0.339 66 2/7/2025
3.0.338 70 2/7/2025
3.0.337 67 2/7/2025
3.0.336 68 2/7/2025
3.0.335 67 2/7/2025
3.0.334 52 2/7/2025
3.0.333 50 2/7/2025
3.0.332 54 2/7/2025
3.0.331 55 2/7/2025
3.0.330 50 2/6/2025
3.0.329 51 2/6/2025
3.0.328 65 2/5/2025
3.0.327 71 2/5/2025
3.0.326 68 2/5/2025
3.0.325 66 2/5/2025
3.0.324 72 2/5/2025
3.0.323 68 2/5/2025
3.0.322 71 2/5/2025
3.0.321 70 2/5/2025
3.0.320 77 2/5/2025
3.0.319 72 1/28/2025
3.0.318 57 1/28/2025
3.0.317 66 1/28/2025
3.0.316 66 1/28/2025
3.0.315 58 1/28/2025
3.0.314 56 1/28/2025
3.0.313 63 1/28/2025
3.0.312 64 1/28/2025
3.0.311 61 1/27/2025
3.0.310 61 1/27/2025
3.0.309 59 1/27/2025
3.0.308 62 1/27/2025
3.0.307 70 1/27/2025
3.0.306 67 1/27/2025
3.0.305 70 1/26/2025
3.0.304 63 1/26/2025
3.0.303 61 1/26/2025
3.0.302 72 1/26/2025
3.0.301 62 1/26/2025
3.0.300 65 1/26/2025
3.0.299 63 1/26/2025
3.0.298 68 1/26/2025
3.0.297 65 1/25/2025
3.0.296 63 1/25/2025
3.0.295 63 1/25/2025
3.0.294 64 1/25/2025
3.0.293 64 1/25/2025
3.0.292 62 1/25/2025
3.0.291 63 1/25/2025
3.0.290 52 1/25/2025
3.0.289 48 1/25/2025
3.0.288 46 1/24/2025
3.0.287 40 1/24/2025
3.0.286 41 1/24/2025
3.0.285 39 1/24/2025
3.0.284 61 1/24/2025
3.0.283 67 1/24/2025
3.0.282 63 1/24/2025
3.0.281 57 1/24/2025
3.0.280 57 1/24/2025
3.0.279 61 1/24/2025
3.0.278 65 1/24/2025
3.0.277 67 1/23/2025
3.0.276 64 1/23/2025
3.0.275 65 1/23/2025
3.0.274 66 1/23/2025
3.0.273 61 1/23/2025
3.0.272 63 1/22/2025
3.0.271 64 1/22/2025
3.0.270 63 1/22/2025
3.0.269 66 1/21/2025
3.0.268 69 1/21/2025
3.0.266 61 1/21/2025
3.0.265 62 1/21/2025
3.0.264 64 1/21/2025
3.0.263 65 1/21/2025
3.0.262 65 1/21/2025
3.0.261 66 1/21/2025
3.0.260 66 1/21/2025
3.0.259 65 1/21/2025
3.0.258 61 1/21/2025
3.0.257 63 1/21/2025
3.0.256 71 1/21/2025
3.0.255 61 1/21/2025
3.0.254 64 1/21/2025
3.0.253 55 1/21/2025
3.0.252 70 1/21/2025
3.0.251 66 1/21/2025
3.0.250 58 1/21/2025
3.0.249 68 1/21/2025
3.0.248 64 1/21/2025
3.0.247 71 1/20/2025
3.0.246 67 1/20/2025
3.0.245 63 1/20/2025
3.0.244 61 1/20/2025
3.0.243 59 1/20/2025
3.0.242 65 1/20/2025
3.0.241 56 1/20/2025
3.0.240 59 1/20/2025
3.0.239 66 1/20/2025
3.0.238 70 1/20/2025
3.0.237 67 1/20/2025
3.0.236 62 1/20/2025
3.0.235 77 1/20/2025
3.0.234 70 1/20/2025
3.0.233 63 1/20/2025
3.0.232 68 1/20/2025
3.0.231 64 1/20/2025
3.0.230 64 1/20/2025
3.0.229 63 1/19/2025
3.0.228 71 1/19/2025
3.0.227 71 1/19/2025
3.0.226 63 1/19/2025
3.0.225 70 1/19/2025
3.0.224 66 1/19/2025
3.0.223 70 1/19/2025
3.0.222 66 1/19/2025
3.0.221 64 1/19/2025
3.0.220 65 1/19/2025
3.0.219 64 1/18/2025
3.0.218 62 1/18/2025
3.0.217 66 1/18/2025
3.0.216 64 1/18/2025
3.0.215 70 1/18/2025
3.0.214 70 1/18/2025
3.0.213 62 1/18/2025
3.0.212 64 1/18/2025
3.0.211 63 1/18/2025
3.0.210 72 1/17/2025
3.0.209 67 1/17/2025
3.0.208 66 1/17/2025
3.0.207 64 1/17/2025
3.0.206 67 1/17/2025
3.0.205 65 1/17/2025
3.0.204 80 1/17/2025
3.0.203 78 1/17/2025
3.0.202 64 1/17/2025
3.0.201 74 1/16/2025
3.0.200 72 1/16/2025
3.0.199 66 1/16/2025
3.0.198 75 1/16/2025
3.0.197 79 1/16/2025
3.0.196 81 1/16/2025
3.0.195 64 1/16/2025
3.0.194 67 1/16/2025
3.0.193 66 1/16/2025
3.0.192 66 1/16/2025
3.0.191 67 1/16/2025
3.0.190 66 1/16/2025
3.0.189 68 1/16/2025
3.0.188 65 1/15/2025
3.0.187 68 1/15/2025
3.0.186 63 1/15/2025
3.0.185 74 1/15/2025
3.0.184 74 1/15/2025
3.0.183 70 1/15/2025
3.0.182 63 1/15/2025
3.0.181 65 1/15/2025
3.0.180 74 1/15/2025
3.0.179 65 1/15/2025
3.0.178 62 1/15/2025
3.0.177 59 1/15/2025
3.0.176 59 1/15/2025
3.0.175 39 1/15/2025
3.0.174 38 1/15/2025
3.0.173 23 1/15/2025
3.0.172 21 1/15/2025
3.0.171 21 1/15/2025
3.0.170 20 1/15/2025
3.0.169 22 1/15/2025
3.0.168 18 1/14/2025
3.0.167 20 1/14/2025
3.0.166 7 1/14/2025
3.0.165 7 1/14/2025
3.0.164 7 1/14/2025
3.0.163 36 1/13/2025
3.0.162 33 1/13/2025
3.0.161 37 1/13/2025
3.0.160 33 1/13/2025
3.0.159 35 1/13/2025
3.0.158 40 1/13/2025
3.0.157 40 1/11/2025
3.0.156 40 1/11/2025
3.0.155 42 1/11/2025
3.0.154 38 1/11/2025
3.0.153 42 1/11/2025
3.0.152 39 1/11/2025
3.0.151 39 1/10/2025
3.0.150 39 1/10/2025
3.0.149 44 1/10/2025
3.0.148 41 1/10/2025
3.0.147 40 1/10/2025
3.0.146 41 1/10/2025
3.0.145 41 1/10/2025
3.0.144 40 1/10/2025
3.0.143 110 1/3/2025
3.0.142 106 1/3/2025
3.0.141 109 1/3/2025
3.0.140 108 1/3/2025
3.0.139 87 1/3/2025
3.0.138 74 1/3/2025
3.0.137 81 1/3/2025
3.0.136 81 1/3/2025
3.0.135 90 1/2/2025
3.0.134 88 1/2/2025
3.0.133 95 1/2/2025
3.0.132 91 1/2/2025
3.0.131 85 1/2/2025
3.0.130 83 1/2/2025
3.0.129 91 1/2/2025
3.0.128 99 1/1/2025
3.0.127 96 1/1/2025
3.0.126 93 1/1/2025
3.0.125 94 1/1/2025
3.0.124 93 1/1/2025
3.0.123 90 1/1/2025
3.0.122 94 1/1/2025
3.0.121 91 1/1/2025
3.0.120 92 1/1/2025
3.0.119 88 1/1/2025
3.0.118 83 1/1/2025
3.0.117 93 1/1/2025
3.0.116 95 12/31/2024
3.0.115 87 12/31/2024
3.0.114 92 12/31/2024
3.0.113 88 12/31/2024
3.0.112 83 12/31/2024
3.0.111 82 12/31/2024
3.0.110 84 12/31/2024
3.0.109 105 12/31/2024
3.0.108 102 12/31/2024
3.0.107 99 12/31/2024
3.0.106 106 12/31/2024
3.0.105 99 12/31/2024
3.0.104 78 12/31/2024
3.0.103 78 12/31/2024
3.0.102 78 12/31/2024
3.0.101 73 12/31/2024
3.0.100 75 12/31/2024
3.0.99 80 12/31/2024
3.0.98 83 12/31/2024
3.0.97 78 12/30/2024
3.0.96 75 12/30/2024
3.0.95 84 12/28/2024
3.0.94 78 12/28/2024
3.0.93 85 12/28/2024
3.0.92 82 12/28/2024
3.0.91 76 12/28/2024
3.0.90 82 12/27/2024
3.0.89 88 12/27/2024
3.0.88 81 12/27/2024
3.0.87 90 12/24/2024
3.0.86 76 12/24/2024
3.0.85 75 12/24/2024
3.0.84 80 12/24/2024
3.0.83 77 12/24/2024
3.0.82 81 12/24/2024
3.0.81 76 12/24/2024
3.0.80 78 12/24/2024
3.0.79 77 12/24/2024
3.0.78 86 12/24/2024
3.0.77 79 12/24/2024
3.0.76 79 12/24/2024
3.0.75 76 12/24/2024
3.0.74 78 12/24/2024
3.0.73 81 12/24/2024
3.0.72 75 12/24/2024
3.0.71 77 12/23/2024
3.0.70 80 12/23/2024
3.0.69 82 12/23/2024
3.0.68 82 12/23/2024
3.0.67 83 12/23/2024
3.0.66 77 12/23/2024
3.0.65 75 12/23/2024
3.0.64 81 12/23/2024
3.0.63 87 12/23/2024
3.0.62 75 12/23/2024
3.0.61 78 12/23/2024
3.0.60 90 12/22/2024
3.0.59 79 12/22/2024
3.0.58 78 12/22/2024
3.0.57 90 12/22/2024
3.0.56 75 12/22/2024
3.0.55 76 12/22/2024
3.0.54 86 12/22/2024
3.0.53 84 12/22/2024
3.0.52 79 12/22/2024
3.0.51 79 12/22/2024
3.0.50 87 12/22/2024
3.0.49 77 12/22/2024
3.0.48 93 12/22/2024
3.0.47 93 12/21/2024
3.0.46 84 12/21/2024
3.0.45 84 12/21/2024
3.0.44 84 12/21/2024
3.0.43 89 12/21/2024
3.0.42 81 12/21/2024
3.0.41 84 12/21/2024
3.0.40 78 12/21/2024
3.0.39 91 12/21/2024
3.0.38 82 12/21/2024
3.0.37 85 12/21/2024
3.0.36 80 12/21/2024
3.0.35 89 12/21/2024
3.0.34 92 12/21/2024
3.0.33 84 12/21/2024
3.0.32 87 12/20/2024
3.0.31 92 12/20/2024
3.0.30 92 12/20/2024
3.0.29 82 12/20/2024
3.0.28 79 12/20/2024
3.0.27 94 12/20/2024
3.0.26 74 12/20/2024
3.0.25 76 12/20/2024
3.0.24 88 12/20/2024
3.0.23 82 12/20/2024
3.0.22 89 12/20/2024
3.0.21 83 12/19/2024
3.0.20 79 12/19/2024
3.0.19 82 12/19/2024
3.0.18 79 12/19/2024
3.0.17 74 12/19/2024
3.0.16 82 12/19/2024
3.0.15 80 12/19/2024
3.0.14 84 12/19/2024
3.0.13 89 12/19/2024
3.0.12 81 12/19/2024
3.0.11 82 12/18/2024
3.0.9 92 12/17/2024
3.0.8 79 12/17/2024
3.0.7 89 12/17/2024
3.0.6 92 12/16/2024
3.0.5 94 12/16/2024
3.0.4 95 12/11/2024
3.0.3 103 12/11/2024
3.0.2 96 12/10/2024
3.0.1 95 12/10/2024