// Load hash from your password DB. bcrypt.compareSync("B4c0//", hash); // true bcrypt.compareSync("not_bacon", hash); // false