SachinJose
SachinJose

Reputation: 8522

Does .zip compression internally maintain a checksum?

Does a .zip archive internally maintain a checksum for the files in it?

If it maintains a checksum, how can I be sure the checksum is verified during decompression? And is it possible to verify the checksum without decompressing?

Upvotes: 18

Views: 7857

Answers (1)

Nickolay Olshevsky
Nickolay Olshevsky

Reputation: 14160

Yes, zip holds CRC-32 checksum for each file in archive, and it should verify it during the decompression.

Upvotes: 18

Related Questions