Confused on verification speed

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
pissant
Posts: 179
Joined: 05 Nov 2005 22:45

Confused on verification speed

Post by pissant »

Regarding the verification option during file copies, the help file says:
Byte-to-byte: Most secure, but slower on huge files.

· MD5: Fastest of the hashing algorithms offered here.

· SHA-1: More secure than MD5 but slightly slower. Faster than Byte-to-byte on huge files.
To perform a byte-to-byte comparison, of course, the entire file must be read (both copies). But each entire file must also be read before performing either MD5 or SHA-1 hashing. So my question becomes: Is Byte-to-byte slower not because of storage medium I/O but because of the processor-intensive comparison process, which is actually more intensive than hashing?

admin
Site Admin
Posts: 64849
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Confused on verification speed

Post by admin »

Good question. MD5 uses the Windows Crypto API which seems to know a trick that I don't know. Hence it does the bigger job slightly faster than I do the smaller job. I'm embarrassed but can't help it at the moment.

Post Reply