Crypto.VerifyHashedPassword(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The previously-computed RFC 2898 hash value as a base-64-encoded string.
- password
- 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
hashedPassword
or password
is null.