Skip to content

libsodium.Password.VerifyHash

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

libsodium.Password.VerifyHash

Method Signature

 Function VerifyHash(HashValue As MemoryBlock, HashAlgorithm As Int32 = libsodium.Password.ALG_ARGON2) As Boolean

Parameters

Name Type Comment
HashValue MemoryBlock The password hash to validate.
HashAlgorithm Int32 Optional. Either ALG_ARGON2 (default) or ALG_SCRYPT.

Return value

This method returns True if the HashValue matches the Password.

Remarks

This method verifies that the HashValue is a valid hash for the password (as generated by the Password.GenerateHash method).

Clone this wiki locally