Dela via


IPasswordHasher<TUser> Interface

Definition

Provides an abstraction for hashing passwords.

generic <typename TUser>
 where TUser : classpublic interface class IPasswordHasher
public interface IPasswordHasher<TUser> where TUser : class
type IPasswordHasher<'User (requires 'User : null)> = interface
Public Interface IPasswordHasher(Of TUser)

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