Files
k42api/generate-password.js
2025-03-02 20:53:34 -04:00

8 lines
235 B
JavaScript

const bcrypt = require('bcryptjs');
const password = 'password123';
const salt = bcrypt.genSaltSync(10);
const hash = bcrypt.hashSync(password, salt);
console.log('Use this hash in your dashboard configuration:');
console.log(hash);