WordPress Password Hasher
A password hash verify tool for WordPress (4.7+) in Node.js.
Currently only provides the methods to check the result of
Requirement
- TypeScript v2.6.1 (or newer)
- Node.js v8.0.0 (or newer)
Installation
npm i wp-passhash --save
Usage
; ; ;; /** * Use method hash to calculate the hash result of a password. */console.logpassHasher.hash plainPassword, hash; // should be equal to hash /** * Or just use the method check to verify whether the password matches the * hash. */console.logpassHasher.check "8#f9W#gApQC)KBF$NZW)I!(K", "$P$BPtHLwtFQBDkF1tK9CXfbt09wsY5eV/"; console.logpassHasher.check "gJwnOv#YlIV^urVXtZwRbOk1", "$P$B3r.hG2lVzacV.VeI05sjN0sO6hZva.";
License
This library is published under Apache-2.0 license.