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
)
Public Shared Function ValidatePassword (
password As String,
base64Hash As String
) As Boolean
Parameters
- password
- Type: SystemString
The plain-text password. - base64Hash
- Type: SystemString
The previously hashed string.
Return Value
Type:
BooleanTrue if the string matches, else false.
See Also