Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

438
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda