mirror of
https://github.com/edumeet/edumeet.git
synced 2026-01-23 18:47:15 +00:00
10 lines
237 B
JavaScript
10 lines
237 B
JavaScript
const bcrypt = require('bcrypt');
|
|
const saltRounds=10;
|
|
|
|
if (process.argv.length == 3)
|
|
{
|
|
const cleartextPassword = process.argv[2];
|
|
|
|
// eslint-disable-next-line no-console
|
|
console.log(bcrypt.hashSync(cleartextPassword, saltRounds));
|
|
}
|