Search Results for

    Show / Hide Table of Contents

    Class MembershipPasswordHasher

    https://docs.microsoft.com/en-us/aspnet/identity/overview/migrations/migrating-an-existing-website-from-sql-membership-to-aspnet-identity

    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
    In This Article
    Back to top (c) Meriworks 2002-2022