I am trying to migrate some users created in a Django app over to a Node.js app. Users created in the Django app have had their pssswords hashed using the BCryptSHA256PasswordHasher hasher and these are stored in a PostgreSQL database. I am able to get the whole password string from Postgres where these are stored in the form:
<algorithm>$<iterations>$<salt>$<hash>.
What I am trying to do is figure out how to take a known password (say Password1) and, using the salt from the field in Postgres, get the Node.js hashed string to match the Django string. In this way I can authenticate those users who have been migrated over.
I have made several attempts at using the bcrypt and bcryptjs npm's for Node.js but so far I'm having no luck.
A working example using any of the Node.js npm's would be great.
BCryptSHA256PasswordHasherto check exact alghoritm?