What is a hash function?
A hash function is a cryptographic algorithm that converts input data of any size into a fixed-size string of characters, called a hash or digest. The hash is unique to the input data - even a tiny change in the input produces a completely different hash. Hash functions are one-way, meaning you cannot reverse the hash to get the original data.