Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riaf/node-php-password
Compatibility with the password_* functions on PHP
https://github.com/riaf/node-php-password
javascript node password php
Last synced: 2 days ago
JSON representation
Compatibility with the password_* functions on PHP
- Host: GitHub
- URL: https://github.com/riaf/node-php-password
- Owner: riaf
- License: mit
- Created: 2014-05-21T12:27:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-21T12:30:56.000Z (over 10 years ago)
- Last Synced: 2024-10-14T13:07:01.346Z (25 days ago)
- Topics: javascript, node, password, php
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-php-password
=================Compatibility with the password_* functions on PHP
Installation
------------```sh
$ npm install php-password
```Usage
-----```javascript
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');
}
```