Click or drag to resize

PasswordHashValidatePassword Method

Validates a plain-text string with a previously hashed string. The provided hash may be a single base-64-encoded salt+hash (as returned by HashPassword(String), or a pipe-delimited salt+hash (as returned by HashPasswordDelimited(String)). Note that this method will never throw even if the provided hash value is not a valid hash.

Namespace:  NetQuarry.Security
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool ValidatePassword(
	string password,
	string base64Hash
)

Parameters

password
Type: SystemString
The plain-text password.
base64Hash
Type: SystemString
The previously hashed string.

Return Value

Type: Boolean
True if the string matches, else false.
See Also