📜  使用 bycrypt 创建盐哈希 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:02.983000             🧑  作者: Mango

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