Files
harheimertc/scripts/hash-password.js
Torsten Schulz (local) 3586704cce
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 10m29s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped
Update file permissions for multiple server and test files to executable mode
2026-07-15 08:45:12 +02:00

15 lines
328 B
JavaScript
Executable File

import bcrypt from 'bcryptjs'
const password = process.argv[2] || 'admin123'
bcrypt.hash(password, 10, (err, hash) => {
if (err) {
console.error('Fehler:', err)
return
}
console.log('\nPasswort:', password)
console.log('Hash:', hash)
console.log('\nKopieren Sie diesen Hash in server/data/users.json\n')
})