Share via


IPasswordHasher<TUser>.HashPassword(TUser, String) Method

Definition

Returns a hashed representation of the supplied password for the specified user.

public:
 System::String ^ HashPassword(TUser user, System::String ^ password);
public string HashPassword (TUser user, string password);
abstract member HashPassword : 'User * string -> string
Public Function HashPassword (user As TUser, password As String) As String

Parameters

user
TUser

The user whose password is to be hashed.

password
String

The password to hash.

Returns

A hashed representation of the supplied password for the specified user.

Applies to