0.0.1 • Published 10 years ago
php-password v0.0.1
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');
}
0.0.1
10 years ago