Files
miriamgemeinde/utils/createhash.js
Torsten Schulz 61653ff407 inital commit
2024-06-15 23:01:46 +02:00

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);
}
});