I want to calculate the CRC32 checksum of a string of hexadecimal values ββin python. I found zlib.crc32 (data) and binascii.crc32 (data), but all the examples I found using these functions have βdataβ as a string (for example, βhelloβ). I want to pass the hexadecimal values ββas data and find the checksum. I tried to set the data as a hexadecimal value (e.g. 0x18329a7e), and I get TypeError: should be a string or buffer, not an int. The function evaluates when I make a hexadecimal value a string (for example, "0x18329a7e"), but I don't think it evaluates the correct checksum. Any help would be greatly appreciated. Thanks!
source share