Files
Discord-Bot-Builder/hash.js
HerpieDerpie@example.com 39c2ed3048 vscode keeps complaining :(
2024-01-14 19:22:43 +01:00

14 lines
329 B
JavaScript
Executable File

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