A hash is a mathematical function that converts a message (the input) of arbitrary length into an encrypted output of a fixed length.