Gemstone Security Library
Show/Hide TOC

# Argon2Verify(String, Byte, Byte) 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.143 -- Release Build+a60d70aed28a00e9a003edaf1526cd3e47fa0cc1
C#
View Source Request Example

    public static bool Verify(
    	string encoded,
    	byte[] password,
    	byte[]? secret
    )

VB
View Source Request Example

    Public Shared Function Verify (
    	encoded As String,
    	password As Byte(),
    	secret As Byte()
    ) As Boolean

C++
View Source Request Example

    public:
    static bool Verify(
    	String^ encoded,
    	array<unsigned char>^ password,
    	array<unsigned char>^ secret
    )

JavaScript
View Source Request Example

    Gemstone.Security.Cryptography.Argon2Hash.Argon2.Verify = function(encoded, password, secret);

#### 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.
secret Byte
  The secret hashed into the password.

#### Return Value

Boolean
True on success; false otherwise.

## See Also

#### Reference

Argon2 Class
Verify Overload
Gemstone.Security.Cryptography.Argon2Hash Namespace