Crypto.HashPassword(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對指定的密碼傳回 RFC 2898 雜湊值。
public static string HashPassword(string password);
static member HashPassword : string -> string
Public Shared Function HashPassword (password As String) As String
參數
- password
- String
要產生其雜湊值的密碼。
傳回
做為 base-64 編碼字串的雜湊值 password 。
例外狀況
password 為 null。