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