Hash functions explained in a simple way

Understanding how hash functions work

First, what is a hash function?