Soenneker.Hashing.Argon2 3.0.202

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

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

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.319 60 1/28/2025
3.0.318 51 1/28/2025
3.0.317 58 1/28/2025
3.0.316 58 1/28/2025
3.0.315 52 1/28/2025
3.0.314 48 1/28/2025
3.0.313 57 1/28/2025
3.0.312 58 1/28/2025
3.0.311 55 1/27/2025
3.0.310 53 1/27/2025
3.0.309 53 1/27/2025
3.0.308 56 1/27/2025
3.0.307 64 1/27/2025
3.0.306 61 1/27/2025
3.0.305 64 1/26/2025
3.0.304 59 1/26/2025
3.0.303 57 1/26/2025
3.0.302 68 1/26/2025
3.0.301 58 1/26/2025
3.0.300 61 1/26/2025
3.0.299 59 1/26/2025
3.0.298 64 1/26/2025
3.0.297 61 1/25/2025
3.0.296 59 1/25/2025
3.0.295 59 1/25/2025
3.0.294 60 1/25/2025
3.0.293 60 1/25/2025
3.0.292 58 1/25/2025
3.0.291 59 1/25/2025
3.0.290 48 1/25/2025
3.0.289 42 1/25/2025
3.0.288 40 1/24/2025
3.0.287 32 1/24/2025
3.0.286 34 1/24/2025
3.0.285 33 1/24/2025
3.0.284 54 1/24/2025
3.0.283 61 1/24/2025
3.0.282 57 1/24/2025
3.0.281 53 1/24/2025
3.0.280 53 1/24/2025
3.0.279 57 1/24/2025
3.0.278 61 1/24/2025
3.0.277 63 1/23/2025
3.0.276 60 1/23/2025
3.0.275 61 1/23/2025
3.0.274 62 1/23/2025
3.0.273 57 1/23/2025
3.0.272 61 1/22/2025
3.0.271 62 1/22/2025
3.0.270 61 1/22/2025
3.0.269 64 1/21/2025
3.0.268 67 1/21/2025
3.0.266 59 1/21/2025
3.0.265 60 1/21/2025
3.0.264 62 1/21/2025
3.0.263 63 1/21/2025
3.0.262 63 1/21/2025
3.0.261 64 1/21/2025
3.0.260 64 1/21/2025
3.0.259 63 1/21/2025
3.0.258 59 1/21/2025
3.0.257 61 1/21/2025
3.0.256 69 1/21/2025
3.0.255 59 1/21/2025
3.0.254 62 1/21/2025
3.0.253 53 1/21/2025
3.0.252 68 1/21/2025
3.0.251 64 1/21/2025
3.0.250 56 1/21/2025
3.0.249 66 1/21/2025
3.0.248 62 1/21/2025
3.0.247 69 1/20/2025
3.0.246 65 1/20/2025
3.0.245 61 1/20/2025
3.0.244 59 1/20/2025
3.0.243 57 1/20/2025
3.0.242 63 1/20/2025
3.0.241 54 1/20/2025
3.0.240 57 1/20/2025
3.0.239 64 1/20/2025
3.0.238 68 1/20/2025
3.0.237 65 1/20/2025
3.0.236 60 1/20/2025
3.0.235 75 1/20/2025
3.0.234 68 1/20/2025
3.0.233 61 1/20/2025
3.0.232 66 1/20/2025
3.0.231 62 1/20/2025
3.0.230 62 1/20/2025
3.0.229 61 1/19/2025
3.0.228 69 1/19/2025
3.0.227 69 1/19/2025
3.0.226 61 1/19/2025
3.0.225 68 1/19/2025
3.0.224 64 1/19/2025
3.0.223 68 1/19/2025
3.0.222 64 1/19/2025
3.0.221 62 1/19/2025
3.0.220 63 1/19/2025
3.0.219 62 1/18/2025
3.0.218 60 1/18/2025
3.0.217 64 1/18/2025
3.0.216 62 1/18/2025
3.0.215 68 1/18/2025
3.0.214 68 1/18/2025
3.0.213 60 1/18/2025
3.0.212 62 1/18/2025
3.0.211 61 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 35 1/13/2025
3.0.160 31 1/13/2025
3.0.159 33 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