Jump to content

additional hex values after the end of the zip file


hisoka
 Share

Recommended Posts

Hello glad to be again in w3schools forum :)

when I opened a zip file in hex editor , I noticed that after the end of the file , there are additional hex values . For example in a zip file I opened in a hex editor there was like this :

50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00

50 4B 05 06  hex values represent the end of the zip file . However , I do not understand what represent these additional hex values after the end

00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00  ??

 

 

 

 

 

Edited by hisoka
Link to comment
Share on other sites

The table in the Wikipedia article states exactly what all the additional bytes are.

I'll just copy what's in the article here for you and show your bytes next to them:

https://en.wikipedia.org/wiki/Zip_(file_format)#File_headers

  • 2 bytes: Number of this disk 0x0000
  • 2 bytes: Disk where central directory starts 0x0000
  • 2 bytes: Number of central directory records on the disk 0x0002
  • 2 bytes: Total number of central directory records 0x0002
  • 4 bytes: Size of central directory (bytes) 0x0000006F
  • 4 bytes: Offset of start of central directory, relative to start of archive 0x00000984
  • 2 bytes: Comment length (n) 0x0000
  • n bytes: Comment
Link to comment
Share on other sites

Why are you asking us to do your research for you? The central directory and disks are described in detail right in the Wikipedia article under the Structure section https://en.wikipedia.org/wiki/Zip_(file_format)#Structure

If you want information directly from the source, citation 23 points directly to the official specification document https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

In summary:

Please make more of an effort, even after we linked you directly to the information you still did not try to read it for yourself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...