RAR (file format)

From Free net encyclopedia

Image:Rar.png

The acronym RAR redirects to this page; see RAR (disambiguation) for other meanings of RAR.

In computing, RAR is a proprietary file format for data compression and archiving.

The RAR file format was developed by Eugene Roshal (hence the name RAR: Roshal Archive), who was born on March 10, 1972 in Russia and graduated from Chelyabinsk Technical University. He also developed programs for packing and unpacking RAR files, originally for DOS, and later ported to other platforms. The encoder (the main Windows version known as WinRAR) is distributed as shareware, but Roshal has released the decoder's source code under a license that allows free distribution and modification, on condition that it is not reverse-engineered to build a compatible encoder. The current developer is Alexander Roshal. The encoding method is held to be proprietary, but compatible programs for decompression are available for several platforms, such as the open-source 7-Zip.

The file extension is .rar. The MIME-Type is application/x-rar-compressed.

Contents

Comparison to other compression algorithms

As computing power has increased according to Moore's Law, users have responded by preferring compression algorithms which achieve a better rate of compression at the expense of computational time when compressing and decompressing. RAR compression operations are typically much slower than compressing the same data with early compression algorithms like ZIP and gzip, but a much better rate of compression is achieved whenever the data can still be compressed further. If the data is as tight as it can get, such as if it is already compressed, the RAR file may turn out to be larger due to computational overhead. Bzip2, which came after ZIP and gzip, compresses more efficiently at a cost of computational time compared to them, but is in turn less efficient and computationally cheaper than RAR. 7z's LZMA algorithm is quite similar to RAR in providing extremely high compression efficiency at the cost of compute time to compress and decompress. Both provide among the highest compression efficiency of any popular scheme, with which algorithm is more efficient compression scheme strongly depending on the files being compressed. RAR is a proprietary algorithm, which could be counted against it if the comparison isn't made directly on the grounds of effectiveness. Both WinRAR and 7-Zip are still being actively developed.

Archiver features

Apart from the excellent rate of compression, RAR has several other features not previously found in many other archive formats, which has contributed greatly to its popularity:

  • Its handling of split volumes is very good. The most notable such format, before the advent of RAR, was ARJ. It's unnecessary to use RAR or ARJ for this purpose alone since just binary splitting the files will work fine, and they can be reassembled with cat or copy.
  • RAR archives can be of a solid format, in which all of the compressed files are treated as a single data block. Most currently used compression formats (with the exception of old ZIP) allow solid structuring.
  • It features strong encryption capabilities. Older versions of the file format used a proprietary but strong encryption algorithm; newer versions use the AES encryption algorithm, which is considered very strong by today's standards. The only ways to recover an encrypted file are via dictionary or brute force attacks, which are usually infeasible.
  • Extra redundancy can be added to an archive, making it more resistant to corruption. Even if part of an archive is damaged, it may be possible to fully recover the stored data if a large enough "recovery record" exists.
  • RAR provides effective lossless compression of Linear PCM audio files (commonly stored as .wav or .au) where other generalised compression formats (zip, 7-zip) do not. The compression ratio is typically between 50%-90% dependent on the complexity of the source audio and the predictability of the incoming waveform. While RAR does not compress PCM audio as well as, say, WavPack, Monkey's Audio or FLAC, this feature is of considerable benefit to musicians and composers, as entire projects can be backed up and compressed properly without having to losslessly compress the audio files, in advance.
  • Versions of RAR up to 2.50 closely resembles earlier versions of Norton Commander.
  • (Win)RAR also has the capability of storing NTFS streams and security information within the archive – information that is usually lost on compression.

See also

External links

  • Official RAR site, containing archivers for several platforms
  • MacRAR
  • UnRarX – UnRar for Mac OS X
  • RAR add-ons at official site – UnRAR for various platforms, including Eugene Roshal's source code
  • Unrarlib – a library for decoding RAR (version 2) archives based on the Roshal's code, is GPL compatible
  • unrar – a simple free-software unrar utility using Unrarlib above
  • 7-zip an open source windows file archiver that supports unpacking(but not packing) RAR files, as well as other formats.de:RAR (Datenformat)

es:RAR fr:Rar he:WinRAR nl:Rar ja:RAR pl:RAR pt:RAR ru:Rar sl:Datotečni format RAR zh:RAR