IPasswordHasher<TUser>.HashPassword(TUser, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.