private function generateDecryptRequest(InputInterface $input, OutputInterface $output)
    {
        $algorithmId = $input->getArgument('algorithm_id');
        $encryptedValue = $input->getArgument('encrypted_value');
        $key = $input->getOption('key');
        $keyProvided = $input->hasParameterOption(['--key', '-k']);

        $questionText = 'Encrypted value to be decrypted (hidden input): ';
        $encryptedAsker = $this->questionAskerGenerator
            ->generateHiddenInputQuestionAsker($questionText, $input, $output);

        return $this->decryptRequestFactory
            ->createDecryptRequest($algorithmId, $encryptedAsker, $encryptedValue, $key, $keyProvided);
    }
private function generateDecryptRequest(InputInterface $input, OutputInterface $output)
    {
        $algorithmId = $input->getArgument('algorithm_id');
        $encryptedValue = $input->getArgument('encrypted_value');
        $key = $input->getOption('key');
        $keyProvided = $input->hasParameterOption(['--key', '-k']);

        $questionText = 'Encrypted value to be decrypted (hidden input): ';
        $encryptedAsker = $this->questionAskerGenerator
            ->generateHiddenInputQuestionAsker($questionText, $input, $output);

        return $this->decryptRequestFactory
            ->createDecryptRequest($algorithmId, $encryptedAsker, $encryptedValue, $key, $keyProvided);
    }
private function generateDecryptRequest ( InputInterface $ input , OutputInterface $ output ) { $ algorithmId = $ input -> getArgument ( 'algorithm_id' ) ; $ encryptedValue = $ input -> getArgument ( 'encrypted_value' ) ; $ key = $ input -> getOption ( 'key' ) ; $ keyProvided = $ input -> hasParameterOption ( [ '--key' , '-k' ] ) ; $ questionText = 'Encrypted value to be decrypted (hidden input): ' ; $ encryptedAsker = $ this -> questionAskerGenerator -> generateHiddenInputQuestionAsker ( $ questionText , $ input , $ output ) ; return $ this -> decryptRequestFactory -> createDecryptRequest ( $ algorithmId , $ encryptedAsker , $ encryptedValue , $ key , $ keyProvided ) ; }
Generate decrypt request.

@param InputInterface  $input
@param OutputInterface $output

@return DecryptRequest
Generate decrypt request .