|
|
|
|
|
by adrian_b
1712 days ago
|
|
True, but one must not forget that the good error detection properties of CRCs are guaranteed only for limited data lengths. The CRCs of usual sizes, up to 32 bits, are perfectly fine for data sizes in the kilobyte range, but they become poor at megabyte sizes and completely useless at gigabyte sizes. The CRCs have their domain of application for which they are excellent, but some times they are misused, e.g. in various archive file formats, where the archive integrity is checked with a too short CRC instead of using a hash of appropriate length, e.g. SHA-1 or SHA-256. The longer hashes may be truncated, e.g. to 128 bit, which is likely enough for the current sizes of files and file systems, but 64-bit or less is not enough for the kind of files that are typically encountered now. |
|
That's true-- and it's why my message up thread said so explicitly.
Though you can design CRC-like codes which work over extremely long cycle lengths pretty easily, if that is your objective.