Soenneker.Hashing.Argon2 3.0.284

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

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

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.328 31 2/5/2025
3.0.327 34 2/5/2025
3.0.326 35 2/5/2025
3.0.325 33 2/5/2025
3.0.324 46 2/5/2025
3.0.323 43 2/5/2025
3.0.322 57 2/5/2025
3.0.321 55 2/5/2025
3.0.320 62 2/5/2025
3.0.319 66 1/28/2025
3.0.318 53 1/28/2025
3.0.317 60 1/28/2025
3.0.316 60 1/28/2025
3.0.315 54 1/28/2025
3.0.314 50 1/28/2025
3.0.313 59 1/28/2025
3.0.312 60 1/28/2025
3.0.311 57 1/27/2025
3.0.310 55 1/27/2025
3.0.309 55 1/27/2025
3.0.308 58 1/27/2025
3.0.307 66 1/27/2025
3.0.306 63 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 38 1/11/2025
3.0.154 34 1/11/2025
3.0.153 37 1/11/2025
3.0.152 35 1/11/2025
3.0.151 35 1/10/2025
3.0.150 35 1/10/2025
3.0.149 40 1/10/2025
3.0.148 37 1/10/2025
3.0.147 36 1/10/2025
3.0.146 37 1/10/2025
3.0.145 37 1/10/2025
3.0.144 36 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 90 12/16/2024
3.0.5 92 12/16/2024
3.0.4 95 12/11/2024
3.0.3 101 12/11/2024
3.0.2 96 12/10/2024
3.0.1 95 12/10/2024