A mathematical function that converts input data into a fixed-length output called a hash or message digest. Widely used in cryptography for data integrity, authenticity, and random number generation.