|
June 2008
Free Utilities at this Website:
Alternate Method:
Test CRC numbers: The character codes for each letter in the word "resume" are all equal to or less than 127, (hex 7f). The character code for the accented "e" in the word "resumé" is greater than 127. If your source code produces the correct CRC for the first example, but an incorrect CRC for the second example, then chances are you are not using unsigned variables consistently. For instance, referring to the source code page, you can not use a variable of type LONG, it must be a ULONG. Likewise, you can not use a variable of type char, it must be an unsigned char. Use of signed variables, such as int, LONG, or char, introduce high bits into the CRC algorithm where low bits are required.
If you find this information useful, please make a donation Create Window Home Page | Programming | CRC32
PC Magazine Utilities and source code written by -RAE-
This page is located online at: How to Verify CRC-32 Numbers Copyright © 2000 - 2008 Richard A. Ellingson |