Well, you could use standard checksum algorithms like CRC32, MD5, or otherwise. These algorithms are designed to spit out a word regardless of the amount of data being used to calculate the value.