php-password
v0.0.1
Published
Compatibility with the password_* functions on PHP
Downloads
2
Readme
node-php-password
Compatibility with the password_* functions on PHP
Installation
$ npm install php-password
Usage
var phpPassword = require('php-password');
// Example password
var password = 'passw0rd';
// Create hashed password
var hashedPassword = phpPassword.hash(password);
// Verify the password
if (phpPassword.verify(password, hashedPassword)) {
console.log('Success');
} else {
console.log('Failed');
}