What Is a Hash Function? A hash function is an arithmetic function that transforms an input (or a ‘message’) into a string of a predetermined number of bytes. The output, such as a hash code or a hash ...