How can I parse a ZIP file using Crypto ++?

Crypto ++ includes

DEFLATE (RFC 1951) compression / decompression with support for the gzip format (RFC 1952) and zlib (RFC 1950)

but I'm not sure how I could translate this into reading a ZIP file. (I do not mind implementing my own logic for passing ZIP, but, of course, if the library already has a built-in library, I do not want to duplicate it).

If the library does not provide this functionality out of the box, how can I access the zlib and gzip bits (to implement the compression / decompression steps)?

+4
source share
1 answer

I'm not sure about the latest versions of Crypto ++, but it was something like this before

// write to file Gzip zip(new FileSink (output_filename, true ), Gzip::DEFAULT_DEFLATE_LEVEL); zip.Put(buf, dwBufSize); zip.MessageEnd(); 
+3
source

Source: https://habr.com/ru/post/1336658/


All Articles