php-password

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i php-password

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • riaf