wordpress-hash-node icon indicating copy to clipboard operation
wordpress-hash-node copied to clipboard

Not working

Open lo-ud opened this issue 7 years ago • 4 comments

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 :(

lo-ud avatar Dec 05 '17 15:12 lo-ud

Try to check the charset. On which Charset was the old password generated?

Bizarrus avatar Dec 05 '17 20:12 Bizarrus

@Bizarrus It was utf8_general_ci

lo-ud avatar Dec 06 '17 09:12 lo-ud

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.

IamMille avatar Dec 20 '17 15:12 IamMille

Another package worked for me without issues:

https://www.npmjs.com/package/wordpress-password-js

begoon avatar Jan 12 '24 13:01 begoon