Anyone know exactly what this is? I'm trying to write a program to automate some Hex editing I use HxD for and the files I edit use this algorithm, so I've got to implement this. Google searching "Checksum-32 Algorithm" isn't giving me much luck.
Cheers!
Checksum-32...
Re: Checksum-32...
Checksums are built by summing up all the bytes in a file modulo the cardinality of the co-domain of the specific Checksum-function:
Example for Checksum-8 for a file with 5 Bytes:
Code: Select all
Checksum-X(file) = Sum_of_all_bytes(file) mod 2^X
Code: Select all
file = 123, 45, 253, 165, 233
Sum_of_all_bytes(file) = 123 + 45 + 253 + 165 + 233 = 819
Checksum-8(file) = Sum_of_all_bytes(file) mod 2^8 = 819 mod 256 = 51
Re: Checksum-32...
God that simple! Now I do feel an idiot. I bloody spent ages trying out every hash algorithm under the sun as well; I thought it might have been one of the hashes in hashlib! or something.
Thank you so much, you've really helped me with this.
Thank you so much, you've really helped me with this.