I recently needed to check the integrity of some files, but I didn’t know what hash to use nor how to generate one! I choose CRC32 for no particular reasons, and it wasn’t as hard as I imagined to generate the hash!
Anyways, the source code is easy to understand and I tried to comment it as much as I could, so no explanation here. You can download the source code from here.