Files
Discord-Bot-Builder/hash.js
valentijn 560dffcbf8 test
2024-01-14 19:21:17 +01:00

14 lines
329 B
JavaScript

const bcrypt = require('bcrypt');
// Password to be hashed
const passwordToHash = 'password_to_hash';
// Hashing the password with bcrypt
bcrypt.hash(passwordToHash, 10, (err, hash) => {
if (err) {
console.error('Error hashing password:', err);
} else {
console.log('Hashed password:', hash);
}
});