I want to deploy my program to another server. Can my script decrypt all passwords of my customers in database correctly?
//old server
const bcrypt = require("bcrypt");
const salt = bcrypt.genSalt();
password = bcrypt.hash("password", salt);
//new server
const auth = bcrypt.compare(password, "password")
How can BCrypt decrypt passwords with a variable salt that is generated randomly?