IPasswordHasher<TUser> Interface

Definition

Provides an abstraction for hashing passwords.

C#
public interface IPasswordHasher<TUser> where TUser : class

Type Parameters

TUser

The type used to represent a user.

Derived

Methods

HashPassword(TUser, String)

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

VerifyHashedPassword(TUser, String, String)

Returns a PasswordVerificationResult indicating the result of a password hash comparison.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0