19 lines
485 B
JavaScript
19 lines
485 B
JavaScript
|
|
const bcrypt = require('bcrypt');
|
||
|
|
|
||
|
|
const passwords = {
|
||
|
|
'Admin@123': 'admin@goa.gov.in',
|
||
|
|
'Fire@123': 'fire@goa.gov.in',
|
||
|
|
'Tourism@123': 'tourism@goa.gov.in',
|
||
|
|
'Municipality@123': 'municipality@goa.gov.in',
|
||
|
|
'Citizen@123': 'citizen@example.com'
|
||
|
|
};
|
||
|
|
|
||
|
|
async function generateHashes() {
|
||
|
|
for (const [password, email] of Object.entries(passwords)) {
|
||
|
|
const hash = await bcrypt.hash(password, 10);
|
||
|
|
console.log(`${email}: ${hash}`);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
generateHashes().catch(console.error);
|