Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

header's structure of .7z files?

Looking up in net I could find a general overview of rar format structure. http://www.rarlab.com/technote.htm

But what would I be glad to be informed is how 7z files are segmented block by block.

thanks.

like image 344
Abdou Abdou Avatar asked Dec 17 '14 21:12

Abdou Abdou


People also ask

What format is 7z file?

What is a 7z file? Similar to a Zip file, 7z files are simply compressed archive files. However, the 7z extension is created by numerous compression utilities — the most notable being the Open Source 7-Zip archiver by Igor Pavlov.

Is .7z or .Zip better compression?

High compression ratio — for ZIP and GZIP formats, 7-Zip has a better compression ratio than that of PKZIP and WinZip's. Free for commercial use — 7-Zip is protected by the GNU LGPL license, thus allowing you to copy and distribute the software legally. Localized — the software is available in 87 languages.


1 Answers

Refer to the DOC/7zFormat.txt file in the source distribution (an updated version can be found in the official SDK: https://www.7-zip.org/sdk.html).

http://fileformats.archiveteam.org/wiki/7z

To get a better understanding of the file format, you can use hachoir-wx (needs installed wxPython) to navigate an archive to the bit level. It is available via pip. Their parser supports 7zip among lots of other file formats.

like image 124
Gfy Avatar answered Dec 24 '22 02:12

Gfy