- 7z
Infobox file format
name = 7z
extension = .7z
mime =application/x-7z-compressed
owner = Igor Pavlov
creatorcode =
genre =Data compression
containerfor =
containedby =
extendedfrom =
extendedto =7z is a compressed
archive file format that supports several differentdata compression ,encryption and pre-processing filters. The 7z format initially appeared as implemented by the7-Zip archiver. Both the 7-Zip program and a library to read the 7z file format are publicly available under the terms of theGNU Lesser General Public License .The MIME type of 7z is
application/x-7z-compressed
.Features and enhancements
The 7z format provides the following main features:
* Open, modular architecture which allows any compression, conversion, or encryption method to be stacked.
* High compression ratios (depending on the compression method used)
* StrongRijndael /AES-256encryption .
* Large file support (up to approximately 16exabyte s).
*Unicode file names
* Support forsolid compression , where multiple files of like type are compressed within a single stream, in order to exploit the combined redundancy inherent in similar files.
* Compression of archive headers.The format's open architecture allows additional future compression methods to be added to the standard.
Compression method filters
The following compression methods are currently defined:
*
LZMA – A variation of the LZ77 algorithm, using a sliding dictionary up to 1 GB in length for duplicate string elimination. The LZ stage is followed byentropy coding using aMarkov chain based range coder and Patricia trees.
*Bzip2 – The standardBurrows-Wheeler transform algorithm. Bzip2 uses two reversible transformations; BWT, thenMove to front withHuffman coding for symbol reduction (the actual compression element).
* PPMD – Dmitry Shkarin's 2002 PPMdH (PPMII/cPPMII) with small changes: PPMII is an improved version of the 1984PPM compression algorithm (prediction by partial matching).
* DEFLATE – Standard algorithm based on 32 kB LZ77 (LZSS actually) andHuffman coding . Deflate is found in several file formats including ZIP,gzip , PNG andPDF . 7-Zip contains a from-scratch DEFLATE encoder that frequently beats the "de facto" standardzlib version in compression size, but at the expense of CPU usage.A suite of recompression tools called
AdvanceCOMP contains a copy of the DEFLATE encoder from the 7-Zip implementation; these utilities can often be used to further compress the size of existinggzip , ZIP, PNG, or MNG files.Pre-processing filters (for executable files)
The LZMA SDK comes with the BCJ / BCJ2 preprocessor included, so that later stages are able to achieve greater compression: For
x86 , ARM,PowerPC (PPC),IA64 and ARM Thumb processors, jump targets are normalized before compression by changing relative position into absolute values. For x86, this means that near jumps, calls and conditional jumps (but not short jumps and conditional jumps) are converted from the machine language "jump 1655 bytes backwards" style notation to normalized "jump to address 5554" style notation.*
BCJ - Converter for 32-bit x86 executables. Normalise target addresses of near jumps and calls from relative distances to absolute destinations.
*BCJ2 - Pre-processor for 32-bit x86 executables. BCJ2 is an improvement on BCJ, adding additional x86 jump/call instruction processing. Near jump, near call, conditional near jump targets are split out and compressed separately in another stream.Similar executable pre-processing technology is included in other software; the
RAR compressor features displacement compression for 32-bit x86 executables and IA64 Itanium executables, and theUPX runtime executable file compressor includes support for working with 16 bit values withinDOS binary files.Encryption
The 7z format supports
encryption with the AES algorithm with a 256-bit key. The key is generated from a user-suppliedpassphrase using an algorithm based on the SHA-256 hash algorithm. The SHA-256 is executed 256K times which causes a significant delay on slow PCs before compression or extraction starts. This technique is calledkey strengthening and is used to make abrute-force search for the passphrase more difficult.The 7z format provides the option to encrypt the filenames of a 7z archive.Limitations
The 7z format does not store UNIX owner/group permissions, and hence can be inappropriate for backup/archival purposes. A workaround is to convert your data to a tar bitstream before compressing with 7z.
Unlike WinRAR, 7z cannot extract "broken files" - that is (for example) if one has the first segment of a series of 7z files, 7z cannot give you the start of the files within the archive - it must wait until ALL segments are downloaded. WinZip has the same limitation.
7z support at present
Listed below is a guide to how currently available archiving software supports the 7z archive format.
Full support
These programs support both the creation of and adding files to 7z archives, not just reading files in them.
Linux
*
Peazip (GPL)
*File Roller (GPL)
* Ark (GPL) (acts as a wrapper around p7zip)
*p7zip (GPL)
*Karchiver (GPL)Mac
*
7zX (freeware)
*BetterZip (shareware)
*EZ 7z (freeware)
*p7zip (GPL)
*Apimac Compress Files 3 (shareware)
*iArchiver (shareware)Windows
*
7-Zip
*Altap Salamander
*Far Manager
*IZArc (does not support ultra compression and solid format)
* [http://www.jzip.com/ jZip]
*p7zip
*Peazip
*PowerArchiver
*QuickZip
*ShellZip
*SimplyZip
*Squeez
*TUGZip
*ZipGenius
* UltimateZipExtract-only support
These programs support only reading files in existing 7z archives. They do not allow creating new archives, or adding more files to existing archives.
Mac
*
Stuffit (As of 2009 version)
*The Unarchiver (LGPL )
*Zipeg (freeware)Windows
*
Bread-Zip
*ALZip
*ExtractNow
*WinRAR
*WinZip
*Zipeg Amiga
* XAD (with 7-Zip plug-in [ [http://aminet.net/package/util/arc/xad_7z Aminet - util/arc/xad_7z.lha ] ] )
References
See also
*
Comparison of archive formats
*List of archive formats
*Free file format
*Open format External links
* [http://www.7-zip.org/7z.html 7z Format] — General description about the 7z archive format.
* [http://www.bugaco.com/7zip 7zip Unix Manual and 7z format]
Wikimedia Foundation. 2010.