Polygot-Crypto for PHP and nodejs envs
const Password = require("node-php-password");
// php created data
const myPlaintextPassword = 'password';
const hash = '$2a$13$3CSLWZ2HuHkQw8OpMaYiEOnOD9AIh/yPuLZ4TZC2hYy8ShAt/weNu';
console.log(Password.verify(myPlaintextPassword, hash))
console.log(Password.hash("123456"))
no comments