bcrypt encrypt - bc code example
Example 1: bcrypt create encrypted password
bcrypt.hash(password, 12).then(hash => {
console.log(hash)
});
Example 2: bcrypt documentation
bcrypt.hash(myPlaintextPassword, saltRounds, function(err, hash) {
// Store hash in your password DB.
});