| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | 32-bit CRC |
Gary Chambers wrote in a message to All: GC> Can someone quickly calculate the CRC-32s of "UAL" and "AAL" GC> (no quotes), and tell me what you get? For some strange GC> reason, I was under the [mis]conception that it was GC> impossible to have the same CRC for different values. GC> Stumped... Not only is it quite possible to have the same CRC for different values, but it is an absolute necessity since there are only 2**32 possible CRC-32 values. In fact, it is relatively easy to apply basic linear algebra concepts in order to modify a data block and keep the same CRC, since CRC is not designed to resist this. If you need specifically a one-way hash with a guaranteed distribution, then you need to look at the cryptographic hashes such as MD5 or SHA. It is also worth noting that cryptographic hashes produce much larger ranges -- 128 bits in the case of MD5 and 160 bits in the case of SHA -- than any common CRC. It would surprise me if two distinct three-byte strings had identical CRC-32, but I see no reason that it would be mathematically impossible, and I can even see ways to construct such strings if they exist. -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 323/107 170/400 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.