Example #1
0
 /**
  * @inheritdoc
  */
 public function decrypt($encrypted)
 {
     $decrypted = '';
     $signature = null;
     $info = $this->gpg->verify($encrypted, false, $decrypted);
     if (!$info) {
         throw EncryptionException::notVerified($this->gpg->geterror());
     }
     return $decrypted;
 }