0.0.1 • Published 10 years ago

php-password v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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');
}