Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

437
Views
Is there a way to decrypt Salt Hashing in JavaScript?

Let's say I have this Backend Code which Hashes the password of the user

const salt = await bcrypt.genSalt(10);
const hashedPass = await bcrypt.hash(req.body.password, salt);

And for the auth, I just use the Bcrypt Compare function

const validated = await bcrypt.compare(req.body.password, user.password);

It works. But let's say I want to know the Password as well. Is there a bcrypt function for that? Because as far as I know, the only thing it can do is compare the Passwords.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

The whole point of password hashing is making an irreversible action so that anyone else including you cannot reverse the process and get the password. So answer is you can't know. Once it has been hashed there is no going back.

about 4 years ago · Juan Pablo Isaza Report

0

Hashing (either it is MD5 salt hashing, SHA256/SHA512 or salt hashing) is a one way function,you cannot decrypt it, instead you can use RSA encryption with diffie hellman key exchange technique.

Bcrypt library is for Hashing passwords, if you want to retrieve back passwords, you can't do with it.

Instead use RSA with Deffie hellman key exchange technique to securely share keys.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!