How to get the text from a hashed password?

mc 3,681 Reputation points
2022-08-12T06:06:14.807+00:00

there is a password and securityStamp how to get the text ?

the password is hashed by the securityStamp

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
    2022-08-17T06:48:14.42+00:00

    Hi @mc ,

    How to get the text from a hashed password?

    Hashing is a one-way conversion. You cannot un-hash hashed data and get the text.

    If you want to check whether the password is correct. You need to hash the entered password and then compare the result with the hashed password in the database. More detail information, see

    Use Visual C# to compute and compare hash values

    If you are using Asp.net Identity, it also using this method to compare the password with the hashed password. Refer to this link: Hash passwords in ASP.NET Core and the source code for ASP.NET Core Identity's type for a real-world use case.PasswordHasher.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion

    0 comments No comments