Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

165
Vistas
decoding with nodejs from mysql that encoded with php

i have a problem

i have a panel that coded with php and i want to change it to nodejs as backend but i face the problem the password coded with php in this code :

function cryptPassword($password, $salt="fivestar", $rounds=20000) {
if ($salt == "") {
    $salt = substr(bin2hex(openssl_random_pseudo_bytes(16)),0,16);
}
$hash = crypt($password, sprintf('$6$rounds=%d$%s$', $rounds, $salt));
return $hash;

and the password in database like that : $6$rounds=20000$fivestar$Lry4zEh3ngJ83Zu9n8CHUos0ed4QkcOWLwsCenwkF2hiid243pIx1AvdNY4VYP/35MaYgfUVCwW4X4tFciIuJ.

I want to arrive to this hash form . How can arrive to this form in javascript with nodejs ??

thanks a lot

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda