What is a hash algorithm?

A hash algorithm is a mathematical function that takes an input of any length and produces a seemingly random fixed-length string (known as a “hash”) that is unique to the initial input. Hash algorithms are often used to verify data integrity, to authenticate digital signatures, and to generate unique identifiers.