Crypto.VerifyHashedPassword(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的 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。
例外狀況
hashedPassword 或 password 為 null。