You are on page 1of 1

quit()

quit
exit
exit()
bcrypt.genSalt(30).then((salt) => { console.log(salt);})
bcrypt.genSalt(10).then((salt) => { console.log(salt);})
});
console.error(error);
.catch((error) => {
})
console.log(salt);
.then((salt) => {
bcrypt.genSalt(10)
});
console.error(error);
.catch((error) => {
})
console.log(salt);
.then((salt) => {
console.log(salt);bcrypt.genSalt(10)
})
console.log(salt);
.then((salt) => {
bcrypt.genSalt(10)
a = bcrypt.genSalt(10)
console.log(bcrypt.genSalt(10))
const bcrypt = require('bcrypt');
console.log('Hashed Password:', hashedPassword);
console.log('Salt:', salt);
const hashedPassword = bcrypt.hashSync(password, salt);
// Hash the password using the generated salt
const password = 'password123';
// Password to be hashed
const salt = bcrypt.genSaltSync(saltRounds);
const saltRounds = 10;
// Generate a salt
console.log(bcrypt.genSalt(10))
const bcrypt = require('bcrypt');
console.log(bcrypt.genSalt(10))
console.log("mahdi")
const bcrypt = require('bcrypt');
import bcrypt from 'bcryptjs';
quit
quit()
exit()
exit

You might also like