Hash Function

Return to Glossary

A Hash Function, also known as a Hashing Algorithm or Message Digest Function, takes a group of characters (called a key) and maps it to a value of a certain length (called a hash value or hash). The hash value is representative of the original string of characters, but is normally smaller than the original.

Hashing is done for indexing and locating items in databases because it is easier to find the shorter hash value than the longer string. Hashing is also used in encryption.

Source: https://www.techopedia.com/definition/19744/hash-function