wordpress-hash-node

A phpass portable hashing function compatible with wordpress passwords

Usage no npm install needed!

<script type="module">
  import wordpressHashNode from 'https://cdn.skypack.dev/wordpress-hash-node';
</script>

README

wordpress-hash-node

Wordpress hashes (phpass library portable hashes) port for nodejs

Based on phpass for php 5 or greater

install:

$ npm install wordpress-hash-node

usage:

var hasher = require('wordpress-hash-node');
var password = 'testPassword';
var hash = hasher.HashPassword(password);
var checked = hasher.CheckPassword(password, hash); //This will return true;