Definition
A hash function takes an input, such as a file or password, and produces a fixed-length string called a hash or digest. The same input always produces the same hash, but it is practically impossible to work backwards from the hash to the input.
Hashes verify downloads: if the hash of a file you downloaded matches the published hash, the file was not changed in transit. Hashes also help store passwords safely, but only with purpose-built, slow algorithms such as bcrypt, scrypt or Argon2.
Common older functions such as MD5 and SHA-1 are no longer considered safe for security use, although they still appear in checksums.