verifyWithArgon2

Verifies this string against a provided hash and salt using the Argon2 algorithm.

Return

true if this string matches the hash, false otherwise.

Parameters

hash

The expected hash to compare against.

salt

The salt used to generate the hash.


Verifies an input string against this hash and the provided salt using the Argon2 algorithm.

Return

true if the input matches this hash, false otherwise.

Parameters

unhashed

The input string to verify (e.g., a password).

salt

The salt used to generate this hash.