wordpress password encryption in NodeJS

How to do user authentication from wordpress database in nodeJS.

I need to validate user if username/password is correct, using wordpress database. Wordpress is using PHPass PHP library to encrypt passwords. But I need to match password in NodeJS.

Sigh... I took an interest in this, and spent half an hour pouring through PHPass source code. Then I googled for node phpass.

Edit: On closer inspection, this seems to only implement bcrypt encryption, while the PHPass default (which I think Wordpress uses) is something they call "Portable Hashes". node-phpass throws 'Portable hashes are not implemented' when you ask for Portable Hashes. I suggest you implement that for node-phpass and send a pull request.