get the checksum of a file