Polygot-Crypto for PHP and nodejs envs

node v14.20.1
version: 3.0.0
endpointsharetweet
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"))
Loading…

no comments

    sign in to comment