Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extended KotD #4, #5, and #6: _CRC32, _ADLER32, _MD5$
#3
(05-13-2024, 09:38 AM)Jack Wrote:
Quote:"ABC" might have a value of 6, while "AAD" would also have that same value of 6.
if one method fails, would one of the other methods succeed?

Aye, as each are different algorithms for finding the checksum.  

And it's not so much that they "fail".  It's that the don't always guarantee UNIQUE results.

"Applesauce" might checksum to "AXYZ97".
At the same time, "Byttermilk" might also checksum to "AXYZ97".

Now, chances are, if I send "Applesauce" to you, it's not going to corrupt to the point where it becomes "Byttermilk".

If your checksum doesn't match mine, you 100% know something is wrong.  <<-- this is what you're using checksums to check for.  Not the rare "oh, this might match too", issue.

Think of it like car keys.  A million cars made each year, with maybe a thousand different keys between them.  Will your key open a car in every state?  Sure, it probably will!  But will it open your neighbor's car?  Wouldn't think so.  Big Grin
Reply


Messages In This Thread
RE: Extended KotD #4, #5, and #6: _CRC32, _ADLER32, _MD5$ - by SMcNeill - 05-13-2024, 10:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extended KotD #25, #26, and #27: INTEGER DIVISION, CINT, and CLNG SMcNeill 19 3,556 05-04-2025, 11:29 PM
Last Post: SMcNeill
  Extended KotD #23 and #24: _MIN and _MAX SMcNeill 0 605 01-16-2025, 09:51 AM
Last Post: SMcNeill
  Extended KotD #22: _MOUSEHIDDEN SMcNeill 0 612 01-14-2025, 12:29 AM
Last Post: SMcNeill
  Extended KotD #20: _NOTIFYPOPUP SMcNeill 4 1,348 12-05-2024, 01:55 AM
Last Post: Pete
  Extended KotD #21: _MIDISOUNDBANK a740g 8 2,760 08-30-2024, 07:32 PM
Last Post: Steffan-68

Forum Jump:


Users browsing this thread: 2 Guest(s)