Soenneker.Hashing.Argon2 3.0.210

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

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

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.219 0 1/18/2025
3.0.218 0 1/18/2025
3.0.217 0 1/18/2025
3.0.216 0 1/18/2025
3.0.215 0 1/18/2025
3.0.214 0 1/18/2025
3.0.213 0 1/18/2025
3.0.212 0 1/18/2025
3.0.211 0 1/18/2025
3.0.210 27 1/17/2025
3.0.209 27 1/17/2025
3.0.208 27 1/17/2025
3.0.207 25 1/17/2025
3.0.206 24 1/17/2025
3.0.205 26 1/17/2025
3.0.204 29 1/17/2025
3.0.203 29 1/17/2025
3.0.202 24 1/17/2025
3.0.201 34 1/16/2025
3.0.200 31 1/16/2025
3.0.199 29 1/16/2025
3.0.198 33 1/16/2025
3.0.197 36 1/16/2025
3.0.196 35 1/16/2025
3.0.195 29 1/16/2025
3.0.194 30 1/16/2025
3.0.193 28 1/16/2025
3.0.192 32 1/16/2025
3.0.191 30 1/16/2025
3.0.190 31 1/16/2025
3.0.189 32 1/16/2025
3.0.188 32 1/15/2025
3.0.187 29 1/15/2025
3.0.186 31 1/15/2025
3.0.185 38 1/15/2025
3.0.184 34 1/15/2025
3.0.183 34 1/15/2025
3.0.182 30 1/15/2025
3.0.181 32 1/15/2025
3.0.180 32 1/15/2025
3.0.179 33 1/15/2025
3.0.178 27 1/15/2025
3.0.177 26 1/15/2025
3.0.176 27 1/15/2025
3.0.175 11 1/15/2025
3.0.174 11 1/15/2025
3.0.173 8 1/15/2025
3.0.172 9 1/15/2025
3.0.171 5 1/15/2025
3.0.170 5 1/15/2025
3.0.169 5 1/15/2025
3.0.168 5 1/14/2025
3.0.167 5 1/14/2025
3.0.166 3 1/14/2025
3.0.165 3 1/14/2025
3.0.164 3 1/14/2025
3.0.163 30 1/13/2025
3.0.162 29 1/13/2025
3.0.161 31 1/13/2025
3.0.160 27 1/13/2025
3.0.159 29 1/13/2025
3.0.158 34 1/13/2025
3.0.157 31 1/11/2025
3.0.156 29 1/11/2025
3.0.155 32 1/11/2025
3.0.154 30 1/11/2025
3.0.153 31 1/11/2025
3.0.152 29 1/11/2025
3.0.151 29 1/10/2025
3.0.150 29 1/10/2025
3.0.149 35 1/10/2025
3.0.148 31 1/10/2025
3.0.147 30 1/10/2025
3.0.146 31 1/10/2025
3.0.145 31 1/10/2025
3.0.144 29 1/10/2025
3.0.143 106 1/3/2025
3.0.142 102 1/3/2025
3.0.141 105 1/3/2025
3.0.140 104 1/3/2025
3.0.139 83 1/3/2025
3.0.138 70 1/3/2025
3.0.137 77 1/3/2025
3.0.136 77 1/3/2025
3.0.135 86 1/2/2025
3.0.134 84 1/2/2025
3.0.133 91 1/2/2025
3.0.132 87 1/2/2025
3.0.131 81 1/2/2025
3.0.130 79 1/2/2025
3.0.129 87 1/2/2025
3.0.128 95 1/1/2025
3.0.127 92 1/1/2025
3.0.126 89 1/1/2025
3.0.125 90 1/1/2025
3.0.124 89 1/1/2025
3.0.123 86 1/1/2025
3.0.122 90 1/1/2025
3.0.121 87 1/1/2025
3.0.120 88 1/1/2025
3.0.119 84 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