Closed NeuralChris closed 3 years ago
After digging through the source code a bit, I figured it out. You have to manually generate the salt w/ the minor version 'a' in order to generate the correct hash. Here's my code:
const salt = await bcrypt.genSalt(12, 'a');
const hash = await bcrypt.hash(plain_text_password, salt); // Will generate a $2a$12$ hash
I don't see anything in the documentation about switching algos to generate a $2a$ hash. I'm trying to build a Node API that works with a flask app using flask-user which is generating $2a$ hashes.