Make password from hash-password command required.

This commit is contained in:
Clement Michaud 2019-03-03 23:55:34 +01:00
parent ace780d86b
commit f529cd7b38

View File

@ -25,4 +25,8 @@ program
}) })
.parse(process.argv); .parse(process.argv);
if (!password) {
program.help();
}
console.log(ssha512(password, program.salt || 16, program.rounds || 500000)); console.log(ssha512(password, program.salt || 16, program.rounds || 500000));