shaneMangudi / bcrypt-nodejs

Native implementation of bcrypt for NodeJS
Other
574 stars 69 forks source link

Any Decryption Method? #28

Open martingg88 opened 10 years ago

martingg88 commented 10 years ago

I'm still new to this encryption methodology. Is there any method I can decrypt the encrypted data ?

fpirsch commented 10 years ago

Hi, this is no encryption. This is hashing, and there is no way to "unhash". And that's precisely the point ;-)

martingg88 commented 10 years ago

Thanks...

rdegges commented 10 years ago

Might wanna close this one out.

martingg88 commented 10 years ago

sure..thanks.

NoumanMukhtar commented 5 years ago

In my portal, users have the functionality to change their passwords by entering the old and the new passwords. But what, if they forgot their old password? Or what if i want to access their account, then how can i see their password? That's why i want to decrypt/unhash the password in some way. How can i do that? Or is there any better solution?

rdegges commented 5 years ago

@NoumanMukhtar there is no way to do that with a hash. Hashes are, by definition, one way functions. They exist to allow data like a password to be matched but never reversed.

You should check out some documentation on how to properly implement password reset functionality and impersonation functionality in web apps. Those are better solutions to what you're asking.