A hash function is a type of Hash-based cryptography algorithm which encrypts a large, possibly variable-sized amount of data into a small datum, usually a single integer that may serve as an index to an array.
A mathematical function that converts a numerical input value into another compressed numerical value. The input to the hash function is of arbitrary length but output is always of fixed length.