inital commit
This commit is contained in:
12
utils/createhash.js
Normal file
12
utils/createhash.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user