Skip to content

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 ​

NameDescription
hashThe Argon2 hash string to compare against.
passwordThe 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.