Hashes and MACs
A cryptographic hash such as SHA-256 maps any input to 256 bits so that finding an input with a given hash, or two inputs with the same hash, is infeasible, and mixing in a secret key, as HMAC does, gives a message authentication code that only key holders can compute, which detects tampering that a checksum would miss.