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