• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

131
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

almost 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda