What algorithm is used in standard ZIP?

I googled, wiked and read the RFC ZIP, but I can not find any information about the exact algorithm that is used in ZIP.

I found info on ZIP == TAR + GZIP

But I am confused by this information.

Since GZIP uses the LZW algorithm, as far as I remember, and TAR uses LZMA, I can’t imagine how it could be that ZIP == TAR + GZIP (LZMA + LZW - ???)

Could you help me find a ZIP algorithm? I want to implement this.

+6
source share
2 answers

Zip provides features that are roughly equivalent to tar and gzip combinations.

tar , (, , ). , .

gzip .

Zip , .. ( , , , ..) . tar + gzip, "" . (, , ..), , .

, zip, ( , ) - zlib. - zlib . , , , , RFC 1950, 1951 1952.

+9

"zip" - , . , deflate64, bzip2, lzma, wavpack ppmd. , , , zip , .

deflate , gzip zlib, png-.

deflate - LZ77, LZ78.

tar - , . .tar. .tar ( tar, ), , ..tar.gz gzip. tar -z gzip, -j bzip2 (.bz2) -J lzma (.xz).

. . zlib , .

+2

All Articles