wordpress-hash-node
wordpress-hash-node copied to clipboard
Won't work correctly
Trying with Wordpress v4.7
.
The hash is not correct:
WordPress: $P$BARQGysBO3eGVvlkGtu31ra84.JYkV/
wordpress-hash-node: $P$Bk73GCVnE1aA6YxnXe9fYaG5CZ5Lfj.
Had try to debug. But the phpass
methods are the same like your node-module.
Any solutions?
It's because your version might be outputting to binary or utf8.
I've forked and released this repo to ensure the latest commit worked. Otherwise play with line 14 in phpfunctions.js to get your expected result
There seems no available solution to this problem?
Read my last comment, I fixed it in my fork
I am sorry, but I also was not able to make it work. Is there a definitive solution?
Partialy works for me. It's work only for password without utf-8 char. Ex : 'pwdé' doesn't work
Also tested by changing phpfunctions.js
line 14: hash.update(string, 'utf8');
and other here
You need to encode the plain text password using for instance utf8
library before passing it onto the checker function.
Another package worked for me without issues:
https://www.npmjs.com/package/wordpress-password-js