wordpress-hash-node
wordpress-hash-node copied to clipboard
Not working
I have password hashes that are generated with WP hashing in PHP (by someone else long time ago). When i'm trying to compare old hash with the actual password using this lib on node v8.4 i'm getting 'false' results Example: old: $P$Br5zJTom9P1ftBK.v6O7308fRxmWMH0 wordpress-hash-node: $P$Bf/ZHcZbHVxVYy/xFBENuKOmzJ8rHl1 Please help :(
Try to check the charset
. On which Charset was the old password generated?
@Bizarrus It was utf8_general_ci
Does the plaintext password need to be prefixed/suffixed with the constant AUTH_SALT or similar to work? Because I can't either match any known passwords with this.
Another package worked for me without issues:
https://www.npmjs.com/package/wordpress-password-js