Compute checksum for a binary file