# Hash functions explained in a simple way

## Understanding how hash functions work

## First, what is a hash function?

Simply speaking, a hash function is a mathematical function that takes any input size and convert it to a fixed output size. Consider this simple hash function** H(X) = Last digit of (X)**

- H(1234) = 4.