bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

Why does not it give the result, since both password and hash is also the hash of password!!

Open codeater7 opened this issue 5 years ago • 1 comments

Screenshot 2019-12-20 at 0 37 16

codeater7 avatar Dec 19 '19 22:12 codeater7

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', ....

Abijeet avatar Feb 12 '20 07:02 Abijeet