bcrypt.js
bcrypt.js copied to clipboard
Why does not it give the result, since both password and hash is also the hash of password!!

Password should be the unhased value.
So if the password was ABCDEF
, and its hash is 123456jdjfkdldlkfkfkfkf
. To the compare function we should be passing,
bcrypt.compare( 'ABCDEF', '123456jdjfkdldlkfkfkfkf', ....