13 lines
270 B
JavaScript
13 lines
270 B
JavaScript
const bcrypt = require('bcryptjs');
|
|
|
|
const password = 'p3Lv9!7?+Qq';
|
|
const saltRounds = 10;
|
|
|
|
bcrypt.hash(password, saltRounds, (err, hash) => {
|
|
if (err) {
|
|
console.error('Error hashing password:', err);
|
|
} else {
|
|
console.log('Hashed password:', hash);
|
|
}
|
|
});
|