// This is probably the easiest way to use bcryptjs in nodejs
const bcrypt = require("bcryptjs")
const password = "123456"
bcrypt.hash(password, 10)
.then('''do something''')
.catch(err => console.log(err))
bcrypt.genSalt(saltRounds, (err, salt) => {
bcrypt.hash(yourPassword, salt, (err, hash) => {
console.log(salt + hash)
});
});