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

        $questionText = 'Plaintext value to be encrypted (hidden input): ';
        $plaintextAsker = $this->questionAskerGenerator
            ->generateHiddenInputQuestionAsker($questionText, $input, $output);

        return $this->encryptRequestFactory
            ->createEncryptRequest($algorithmId, $key, $keyProvided, $plaintextAsker, $plaintextValue);
    }
private function generateEncryptRequest(InputInterface $input, OutputInterface $output)
    {
        $algorithmId = $input->getArgument('algorithm_id');
        $plaintextValue = $input->getArgument('plaintext_value');
        $key = $input->getOption('key');
        $keyProvided = $input->hasParameterOption(['--key', '-k']);

        $questionText = 'Plaintext value to be encrypted (hidden input): ';
        $plaintextAsker = $this->questionAskerGenerator
            ->generateHiddenInputQuestionAsker($questionText, $input, $output);

        return $this->encryptRequestFactory
            ->createEncryptRequest($algorithmId, $key, $keyProvided, $plaintextAsker, $plaintextValue);
    }
private function generateEncryptRequest ( InputInterface $ input , OutputInterface $ output ) { $ algorithmId = $ input -> getArgument ( 'algorithm_id' ) ; $ plaintextValue = $ input -> getArgument ( 'plaintext_value' ) ; $ key = $ input -> getOption ( 'key' ) ; $ keyProvided = $ input -> hasParameterOption ( [ '--key' , '-k' ] ) ; $ questionText = 'Plaintext value to be encrypted (hidden input): ' ; $ plaintextAsker = $ this -> questionAskerGenerator -> generateHiddenInputQuestionAsker ( $ questionText , $ input , $ output ) ; return $ this -> encryptRequestFactory -> createEncryptRequest ( $ algorithmId , $ key , $ keyProvided , $ plaintextAsker , $ plaintextValue ) ; }
Generate encrypt request.

@param InputInterface  $input
@param OutputInterface $output

@return EncryptRequest
Generate encrypt request .