Share via


Crypto.HashPassword(String) Method

Definition

Returns an RFC 2898 hash value for the specified password.

public static string HashPassword (string password);
static member HashPassword : string -> string
Public Shared Function HashPassword (password As String) As String

Parameters

password
String

The password to generate a hash value for.

Returns

The hash value for password as a base-64-encoded string.

Exceptions

password is null.

Applies to