Hash functions are used to verify that data has not been altered. For example, when epidemiological data is collected from various sources, hash functions can generate a hash value for each dataset. Any subsequent changes in the data will produce a different hash value, indicating potential tampering.