UNPKG

wordpress-hash-node

Version:

A phpass portable hashing function compatible with wordpress passwords

8 lines (6 loc) 275 B
var hasher = require('./lib/hash.js'); var password = 'testpass'; var hash = hasher.HashPassword(password); console.log("Hash for password: " + password + " is: " + hash); var check = hasher.CheckPassword(password, hash); console.log("Password checking results: " + check);