Argon2Verify(String, Byte, Int32) Method

Verify the given Argon2 hash as being that of the given password.

Definition

Namespace: Gemstone.Security.Cryptography.Argon2Hash
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.180 -- Release Build+efa002733e5fdd8ca6ef590a1b20e48d37006b34
public static bool Verify(
	string encoded,
	byte[] password,
	int threads
)

Parameters

encoded  String
The Argon2 hash string. This has the actual hash along with other parameters used in the hash.
password  Byte
The password to verify.
threads  Int32
The number of threads to use. Setting this to a higher number than the "p=" parameter in the encoded string doesn't cause even more parallelism.

Return Value

Boolean
True on success; false otherwise.

See Also