Appearance
PasswordVerify Method
Definition
- Namespace:
JASE.Interfaces - Assembly:
JASE.dll
bool PasswordVerify(string password, string hash)
csharp
bool PasswordVerify(string password, string hash)Verifies a plaintext password against an Argon2 hash string.
Parameters
| Name | Description |
|---|---|
hash | The Argon2 hash string to compare against. |
password | The plaintext password to verify. |
Returns
true if the password matches the hash; otherwise, false.
Remarks
This method decodes the provided Argon2 hash string, rehashes the given password using the same configuration, and performs a fixed-time byte comparison to prevent timing attacks.