Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does .zip compression internally maintain a checksum?

Tags:

unix

zip

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?

like image 774
SachinJ Avatar asked Jun 06 '13 14:06

SachinJ


1 Answers

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

like image 50
Nickolay Olshevsky Avatar answered Sep 23 '22 04:09

Nickolay Olshevsky