A hash function is any function that can be used to map data of arbitrary size to fixed-size values. The values returned by a hash function are called hash values, hash codes, digests, or simply hashes. The values are used to index a fixed-size table called a hash table. Use of a hash function to index a hash table is called hashing or scatter storage addressing. This tool allows you to calculate the HAVAL224,4 hash simply. Paste your string in the given box. Press the generate button. Your code is generated.