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

164
Views
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
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!