What is it?
A hash function is a mathematical function or logical algorithm that takes an input and returns a fixed-size string of bytes, being typically interpreted as a number, called hash code or hash value.
The ideia is to either:
-
Map data of different size to fixed-size values for cryptography
-
Map data to indexes used in Hash Tables