Soenneker.Hashing.Argon2 3.0.390

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

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

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.395 0 2/12/2025
3.0.394 0 2/12/2025
3.0.393 0 2/12/2025
3.0.392 0 2/12/2025
3.0.391 0 2/12/2025
3.0.390 0 2/12/2025
3.0.389 0 2/11/2025
3.0.388 0 2/11/2025
3.0.387 0 2/11/2025
3.0.386 0 2/11/2025
3.0.385 0 2/11/2025
3.0.384 19 2/11/2025
3.0.383 20 2/11/2025
3.0.382 21 2/11/2025
3.0.381 29 2/11/2025
3.0.380 28 2/11/2025
3.0.379 28 2/11/2025
3.0.378 31 2/11/2025
3.0.377 35 2/11/2025
3.0.376 39 2/11/2025
3.0.375 41 2/11/2025
3.0.374 44 2/10/2025
3.0.373 42 2/10/2025
3.0.372 37 2/10/2025
3.0.371 42 2/10/2025
3.0.370 44 2/10/2025
3.0.369 45 2/10/2025
3.0.368 42 2/10/2025
3.0.367 45 2/10/2025
3.0.366 47 2/10/2025
3.0.365 38 2/10/2025
3.0.364 40 2/9/2025
3.0.363 38 2/9/2025
3.0.362 49 2/9/2025
3.0.361 33 2/9/2025
3.0.360 45 2/9/2025
3.0.359 44 2/9/2025
3.0.358 48 2/8/2025
3.0.357 48 2/8/2025
3.0.356 45 2/8/2025
3.0.355 46 2/8/2025
3.0.354 46 2/8/2025
3.0.353 42 2/8/2025
3.0.352 42 2/8/2025
3.0.351 44 2/8/2025
3.0.350 42 2/8/2025
3.0.349 45 2/7/2025
3.0.348 44 2/7/2025
3.0.347 45 2/7/2025
3.0.346 44 2/7/2025
3.0.345 44 2/7/2025
3.0.344 47 2/7/2025
3.0.343 44 2/7/2025
3.0.342 42 2/7/2025
3.0.341 47 2/7/2025
3.0.340 46 2/7/2025
3.0.339 44 2/7/2025
3.0.338 46 2/7/2025
3.0.337 45 2/7/2025
3.0.336 46 2/7/2025
3.0.335 45 2/7/2025
3.0.334 30 2/7/2025
3.0.333 27 2/7/2025
3.0.332 32 2/7/2025
3.0.331 30 2/7/2025
3.0.330 26 2/6/2025
3.0.329 27 2/6/2025
3.0.328 45 2/5/2025
3.0.327 48 2/5/2025
3.0.326 48 2/5/2025
3.0.325 46 2/5/2025
3.0.324 58 2/5/2025
3.0.323 55 2/5/2025
3.0.322 69 2/5/2025
3.0.321 68 2/5/2025
3.0.320 75 2/5/2025
3.0.319 70 1/28/2025
3.0.318 55 1/28/2025
3.0.317 64 1/28/2025
3.0.316 64 1/28/2025
3.0.315 56 1/28/2025
3.0.314 52 1/28/2025
3.0.313 61 1/28/2025
3.0.312 62 1/28/2025
3.0.311 59 1/27/2025
3.0.310 57 1/27/2025
3.0.309 57 1/27/2025
3.0.308 60 1/27/2025
3.0.307 68 1/27/2025
3.0.306 65 1/27/2025
3.0.305 68 1/26/2025
3.0.304 61 1/26/2025
3.0.303 59 1/26/2025
3.0.302 70 1/26/2025
3.0.301 60 1/26/2025
3.0.300 63 1/26/2025
3.0.299 61 1/26/2025
3.0.298 66 1/26/2025
3.0.297 63 1/25/2025
3.0.296 61 1/25/2025
3.0.295 61 1/25/2025
3.0.294 62 1/25/2025
3.0.293 62 1/25/2025
3.0.292 60 1/25/2025
3.0.291 61 1/25/2025
3.0.290 50 1/25/2025
3.0.289 46 1/25/2025
3.0.288 44 1/24/2025
3.0.287 38 1/24/2025
3.0.286 39 1/24/2025
3.0.285 37 1/24/2025
3.0.284 59 1/24/2025
3.0.283 65 1/24/2025
3.0.282 61 1/24/2025
3.0.281 55 1/24/2025
3.0.280 55 1/24/2025
3.0.279 59 1/24/2025
3.0.278 63 1/24/2025
3.0.277 65 1/23/2025
3.0.276 62 1/23/2025
3.0.275 63 1/23/2025
3.0.274 64 1/23/2025
3.0.273 59 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 36 1/11/2025
3.0.156 36 1/11/2025
3.0.155 42 1/11/2025
3.0.154 34 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 90 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 103 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 80 12/27/2024
3.0.89 88 12/27/2024
3.0.88 81 12/27/2024
3.0.87 88 12/24/2024
3.0.86 76 12/24/2024
3.0.85 73 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 76 12/24/2024
3.0.79 77 12/24/2024
3.0.78 84 12/24/2024
3.0.77 77 12/24/2024
3.0.76 79 12/24/2024
3.0.75 76 12/24/2024
3.0.74 76 12/24/2024
3.0.73 81 12/24/2024
3.0.72 75 12/24/2024
3.0.71 75 12/23/2024
3.0.70 80 12/23/2024
3.0.69 82 12/23/2024
3.0.68 80 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 85 12/23/2024
3.0.62 75 12/23/2024
3.0.61 76 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 82 12/21/2024
3.0.45 82 12/21/2024
3.0.44 82 12/21/2024
3.0.43 87 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 87 12/21/2024
3.0.34 92 12/21/2024
3.0.33 82 12/21/2024
3.0.32 85 12/20/2024
3.0.31 90 12/20/2024
3.0.30 92 12/20/2024
3.0.29 80 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 74 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 82 12/19/2024
3.0.13 89 12/19/2024
3.0.12 81 12/19/2024
3.0.11 80 12/18/2024
3.0.9 92 12/17/2024
3.0.8 79 12/17/2024
3.0.7 86 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