dcodeIO / bcrypt.js

Optimized bcrypt in plain JavaScript with zero dependencies.
Other
3.47k stars 264 forks source link

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

Open codeater7 opened 4 years ago

codeater7 commented 4 years ago
Screenshot 2019-12-20 at 0 37 16
Abijeet commented 4 years ago

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