Add generic checksum helper