protected function execute(InputInterface $input, OutputInterface $output)
 {
     $encryptor = new AesEncryptor($this->getContainer()->getParameter("provisioning_api.key"));
     // 256 bit key
     $decryptedMessage = $encryptor->decrypt(base64_decode($input->getArgument("text")));
     $output->writeln($decryptedMessage);
 }
Beispiel #2
0
 /**
  * @param $encryptedData string
  * @return string decrypted data
  * @deprecated
  */
 public function decrypt($encryptedData)
 {
     return $this->encryptor->decrypt(base64_decode($encryptedData));
 }