const bcrypt = require('bcryptjs'); const password = 'password123'; const saltRounds = 10; bcrypt.hash(password, saltRounds, function(err, hash) { if (err) throw err; console.log('Hashed password:', hash); });