0

In RAR5 archives, the CRCs of files seem to be hashed again with the modification time of the corresponding files (so the answer to this question doesn't work).

I EITHER need the real CRCs from the archive, which 7z can indeed show via:

7z t <archive> -scrc <filename>.

But the problem here is that you have to supply the filename. Is there also a way to directly print a list of all files in the RAR-archive and their CRCs?

OR I need a method to check if a file is valid according to the RAR-CRC (which remember, is the standard CRC mysteriously hashed again). I suppose that would work like:

"Hash file and get CRC" ➔ "Hash CRC with mtime of archive to get RAR-CRC" ➔ "Compare"

But I don't know how to do the second step!

viuser
  • 89

0 Answers0