Crypto.VerifyHashedPassword(String, String) Crypto.VerifyHashedPassword(String, String) Crypto.VerifyHashedPassword(String, String) Method

Definition

Determines whether the specified RFC 2898 hash and password are a cryptographic match.

public static bool VerifyHashedPassword (string hashedPassword, string password);
static member VerifyHashedPassword : string * string -> bool
Public Shared Function VerifyHashedPassword (hashedPassword As String, password As String) As Boolean
Parameters
hashedPassword
String String String

The previously-computed RFC 2898 hash value as a base-64-encoded string.

password
String String String

The plaintext password to cryptographically compare with hashedPassword.

Returns

true if the hash value is a cryptographic match for the password; otherwise, false.

Exceptions

Applies to