次の方法で共有


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

Base 64 エンコードされた文字列として以前に計算された RFC 2898 ハッシュ値。

password
String

と暗号化的に比較 hashedPasswordするプレーンテキスト パスワード。

戻り値

ハッシュ値がパスワードの暗号化一致である場合は true。それ以外の場合は false。

例外

hashedPassword または password が null です。

適用対象