Right now we're trying to migrate user password hashes from a basic node.js v0.10.48 application to a Meteor server. I was hoping by using the same version of bcrypt for password hashing would could migrate the hashes themselves, but so far the compare isn't working.
I've made sure that both are using the same version of bcrypt, and each of them works individually to compare hashes they themselves created. But I can't compare a hash created on server A with one created on server B using the same password.
Is there a way to accomplish what I'm looking for?
EDIT: Adding in some examples. First is run on the Meteor side:
The password its hashing here is already a SHA256 hash (and that part lines up just fine between the two servers).
> bcrypt.hashSync(SHA256 HASHED VALUE, 10)
'$2a$10$ky0cB/ezKnyLojOEVfkS9O9jn0V5Lo3BNMLIU2jTokHDcQDk33A0y'
> bcrypt.hashSync(SHA256 HASHED VALUE, 10)
'$2a$10$FdoTohtW/Djd1CN9MJJk6OmD7z60sBUaz56ez62.V/XH7r5s5yBtu'
> bcrypt.compareSync(SHA256 HASHED VALUE, '$2a$10$ky0cB/ezKnyLojOEVfkS9O9jn0V5Lo3BNMLIU2jTokHDcQDk33A0y')
true
> bcrypt.compareSync(SHA256 HASHED VALUE, '$2a$10$FdoTohtW/Djd1CN9MJJk6OmD7z60sBUaz56ez62.V/XH7r5s5yBtu')
true
And on the node application side, using that password I get the same SHA256 hash but then after running bcrypt on it with the same salt (intentionally just using the same value for testing here) I get
$2a$10$ONspBE0StIMRH0GJOI3zO.uFey4yk7dFS85EycN.lnklr4QZk9T0a
Running similar tests as above with the same SHA256 hash gets a false result.