Sample Header Ad - 728x90

Recoverably recompress gzip files into zstd, preserving original checksums?

1 vote
0 answers
172 views
I need to archive a lot of gzip-compressed data. The problem is that compared to zstd, gzip is wasteful, both in terms of ratio and CPU time required to decompress the data. Because of that, I want to recompress the data into zstd. Unfortunately, I need to be able to reconstruct the SHA/MD5 checksums of the original compressed gzip files, in order to prove its origin. Is it possible? If the gzip algorithm was deterministic, that would be trivial, but I don't have access to information about which version of gzip was used, what was the compression level etc.
Asked by d33tah (1381 rep)
Aug 12, 2024, 02:35 PM