Crypto.VerifyHashedPassword(String, String) 方法

定義

判斷指定的 RFC 2898 雜湊和密碼是否為加密相符項目。

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

參數

hashedPassword
String

先前計算 RFC 2898 雜湊值可做為 Base-64 編碼字串。

password
String

要與 進行密碼編譯比較 hashedPassword 的純文字密碼。

傳回

如果雜湊值是密碼的密碼編譯比對,則為 true;否則為 false。

例外狀況

hashedPasswordpassword 為 null。

適用於