Skip to content

Compatibility with the password_* functions on PHP

License

Notifications You must be signed in to change notification settings

riaf/node-php-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compatibility with the password_* functions on PHP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published