Dehasing a password

Updated on May 22, 2019 in Answers
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on May 21, 2019

I’m setting up a login map where they will enter their username and password. Only for security, I hashed the password prior to saving into the database. How do I make sure that the user’s password is the same as the password that was saved?

  • Liked by
Reply
0 on May 22, 2019

I’m not sure how hashing works, so sorry for my ignorance, but couldn’t you hash what they type in, and then compare them?

If they’re the same thing, shouldn’t they be the same hashed too?

  • Liked by
Reply
Cancel