Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine compression method of a ZIP/RAR file

Tags:

I have a few zip and rar files that I'm working with, and I'm trying to analyze the properties of how each file was compressed (compression level, compression algorithm (e.g. deflate, LZMA, BZip2), dictionary size, word size, etc.), and I haven't figured out a way to do this yet.

Is there any way to analyze the files to determine these properties, with software or otherwise?

Cheers and thanks!

like image 803
Intenex Avatar asked Aug 01 '11 09:08

Intenex


People also ask

How do you find the compression ratio of a ZIP?

To determine the compression ratio, divide the size of outputFile value by groupPages value. For example, if the size of outputFile value is 40 000 bytes and the size of the group of pages is 200 000 bytes, then the compression ratio is 40000/200000 or 0.20 (5:1 compression).

What compression algorithm does RAR use?

rar and . zip files [17]. The software uses the Advanced Encryption Standard (AES) to encrypt archives. WinRAR 5.0 and higher supports AES-256 while earlier versions use AES- 128.

What compression type does a ZIP file use?

The ZIP file format uses lossless compression algorithms to do exactly that. It allows you to express the same information in a more efficient way by removing the redundant data from the file. This also means it is faster to send a ZIP file.


1 Answers

This is a fairly old question, but I wanted to throw in my two cents anyway since some of the methods above weren't as easy for me to use.

You can also determine this with 7-Zip. After opening the archive there is a column for method of compression:

7zip properties

like image 122
atatko Avatar answered Oct 31 '22 09:10

atatko