| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 17 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 9 | protected function configure() |
|
| 16 | { |
||
| 17 | 9 | $this |
|
| 18 | 9 | ->setName('generate') |
|
| 19 | 9 | ->setDescription('Generate a key using a CSPRNG') |
|
| 20 | 9 | ->addOption( |
|
| 21 | 9 | 'entropy', |
|
| 22 | 9 | 'e', |
|
| 23 | 9 | InputOption::VALUE_OPTIONAL, |
|
| 24 | 9 | 'How many bytes of entropy do you want in your key? (defaults to 32 bytes or 256 bits)', |
|
| 25 | 32 |
||
| 26 | 9 | ) |
|
| 27 | 9 | ->addOption( |
|
| 28 | 9 | 'format', |
|
| 29 | 9 | 'f', |
|
| 30 | 9 | InputOption::VALUE_OPTIONAL, |
|
| 31 | 9 | 'What format would do you want your key provided? (hex or base64, defaults to base64)', |
|
| 32 | 'base64' |
||
| 33 | 9 | ); |
|
| 34 | ; |
||
| 35 | 9 | } |
|
| 36 | |||
| 61 |