Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

### Fixed CRC-32 error when writing to ZipOutputStream #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Miroshka000
Copy link

Changes:

  • Removed cloning of ZipEntry to avoid potential data integrity issues.
  • Added an explicit call to outputStream.closeEntry() after writing the encrypted bytes to ensure proper entry closure and correct CRC-32 validation.

These changes ensure that the encryptFile method correctly writes encrypted files to the zip archive, preventing CRC-32 checksum errors.

Best regards,
Miroshka

Added an explicit call to outputStream.closeEntry() after writing the encrypted bytes to ensure proper entry closure and correct CRC-32 validation.
@smartcmd
Copy link
Member

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants