bcrypt.genSalt(saltRounds, (err, salt) => { bcrypt.hash(yourPassword, salt, (err, hash) => { console.log(salt + hash) }); });