> I'm a developer. I'm working on DAT management software and looking for some > information on chdman's functionality. > > Specifically - I'd like to get the hashes (crc, sha1, md5, etc.) of all files inside > a chd (before they were compressed), without havcing to extract them first. Is this > possible, or could I make a feature request? > > If anyone can put me in touch with the right people, I'd be appreciative!
Question: what exactly is the "etc."
The sha1 of the uncompressed data is already available with the "info" command of chdman.exe. But you really have to run a "verify" command to trust it (in case the CHD file is damaged). Which takes as long as an extraction.
I gather that, to save HD space and time, you want to extract to memory and compute various other hashes.
So it depends on what the "etc" is, because that will have to be coded into the variant of chdman you are asking for.
Your best bet for a work-around at this time is to use PeaZip. It has a tool (called PeaUtils on the tool menu) that computes various (15*) kinds of hashes on a file. But you will have to use the chdman extract command to create the file for PeaZip to look at.
* from the help .pdf, supported hashes: Adler32, CRC16/24/32/64, eDonkey, MD4, MD5, Ripemd160, SHA1, SHA224/256/386/512, Whirlpool512
Edit:
Here is a link to a more ambitious CRC calculator, which allows you to define you own algorithm.
http://reveng.sourceforge.net/
Edited by mw (07/26/15 06:33 PM)
|