I'm developing a Node.js application that needs to log in using the same database information from a Laravel aplication.
I've read about BCrypt and trying to use it to make a comparison of the hashed password it generates with the Laravel one stored in the database.
So, by the documentation of BCrypt, I need to do something like that:
var salt = bcrypt.genSaltSync(saltRounds);
var hash = bcrypt.hashSync(myPlaintextPassword, salt);
But I have no idead on how to use the exact same salt from Laravel to hash my password. I need to use the APP_KEY to do this?