blob: e6d3ba5fd619dc94db3a4083320408c89a8ff67d (
plain) (
tree)
|
|
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);
});
|