developerasun / myCodeBox-web

Open source code box for web developers.
Apache License 2.0
5 stars 0 forks source link

NPM : bcrypt #118

Open developerasun opened 2 years ago

developerasun commented 2 years ago

reasearch : read bcrypt docs in NPM

read this

developerasun commented 2 years ago

comparing password

// Load hash from your password DB.
bcrypt.compare(myPlaintextPassword, hash, function(err, result) {
    // result == true
});
bcrypt.compare(someOtherPlaintextPassword, hash, function(err, result) {
    // result == false
});

reference