8 lines
235 B
JavaScript
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);
|