@@ -9,12 +9,6 @@ export default class extends Command {
99
1010 return {
1111 "options" : {
12- "id" : {
13- "short" : "i" ,
14- "description" : "Argon2 algorithm type." ,
15- "default" : argon2 . id ,
16- "schema" : { "enum" : [ "argon2d" , "argon2i" , "argon2id" ] } ,
17- } ,
1812 "argon2-version" : {
1913 "short" : "v" ,
2014 "description" : "Argon2 algorithm version." ,
@@ -39,18 +33,6 @@ export default class extends Command {
3933 "default" : argon2 . parallelism ,
4034 "schema" : { "type" : "integer" , "minimum" : 1 , "maximum" : 255 } ,
4135 } ,
42- "salt-length" : {
43- "short" : "s" ,
44- "description" : "Argon2 salt length." ,
45- "default" : argon2 . saltLength ,
46- "schema" : { "type" : "integer" , "minimum" : 8 , "maximum" : 48 } ,
47- } ,
48- "hash-length" : {
49- "short" : "h" ,
50- "description" : "Argon2 hash length." ,
51- "default" : argon2 . hashLength ,
52- "schema" : { "type" : "integer" , "minimum" : 12 , "maximum" : 64 } ,
53- } ,
5436 } ,
5537 "arguments" : {
5638 "digest" : {
@@ -70,13 +52,10 @@ export default class extends Command {
7052 // public
7153 async run ( ) {
7254 const argon2 = new Argon2 ( {
73- "id" : process . cli . options . id ,
7455 "version" : process . cli . options [ "argon2-version" ] ,
7556 "memoryCost" : process . cli . options [ "memory-cost" ] ,
7657 "timeCost" : process . cli . options [ "time-cost" ] ,
7758 "parallelism" : process . cli . options [ "parallelism" ] ,
78- "saltLength" : process . cli . options [ "salt-length" ] ,
79- "hashLength" : process . cli . options [ "hash-length" ] ,
8059 } ) ,
8160 valid = await argon2 . verifyHash ( process . cli . arguments . digest , process . cli . arguments . password ) ;
8261
0 commit comments