Class MembershipPasswordHasher
Inheritance
System.Object
MembershipPasswordHasher
Namespace: ImageVault.Web.Security.Identity
Assembly: ImageVault.Web.dll
Syntax
public class MembershipPasswordHasher : PasswordHasher
Constructors
MembershipPasswordHasher(String)
What hashAlgorithm that is used depends on the configuration of the membership provider. It can be configured on the Membership or it falls back on the verification algorithm of the machine key. In modern frameworks, machine key is verified using HMACSHA256 but in older SHA1 is used.
Declaration
public MembershipPasswordHasher(string hashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
System.String | hashAlgorithm |
Methods
VerifyHashedPassword(String, String)
Declaration
public override PasswordVerificationResult VerifyHashedPassword(string hashedPassword, string providedPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | hashedPassword | |
System.String | providedPassword |
Returns
Type | Description |
---|---|
Microsoft.AspNet.Identity.PasswordVerificationResult |