Example #1
0
 /**
  * @inheritdoc
  */
 public function decrypt($encrypted)
 {
     $decrypted = $this->gpg->decrypt($encrypted);
     if (!$decrypted) {
         throw EncryptionException::notDecrypted($this->gpg->geterror());
     }
     return $decrypted;
 }