Encryption Observer

Glossary The basics

Hash functions

A hash function takes any data, a single word or a whole film, and produces a short fixed-length fingerprint. Change a single letter and the fingerprint changes completely. You cannot work backwards from the fingerprint to the original.

Think of it like this

A fingerprint identifies a person without telling you anything else about them, and you cannot rebuild the person from it.

Why it matters

Hashes are used to check files have not been altered, to store passwords safely, and inside signatures and blockchains.

Where you meet it

Password storage on websites, software downloads, Bitcoin mining, Git.

SHA-256hash functionHello185f8db32271fe25…hello2cf24dba5fb0a30e…Hello!334d016f755cd6dc…
Real SHA-256 fingerprints, first 16 characters shown. A one-letter change gives a completely different result.

More diagrams: Hash functions: retired and current · Encoding, hashing, encryption, MACs and hiding side by side

Go deeper history and technical detail

Hashing is not encryption: there is no key and no way to reverse it. Good hash functions make it infeasible to find two inputs with the same output (a 'collision'). MD5 was broken in 2004 and SHA-1 in 2017, when Google and CWI Amsterdam published two different PDF files with the same SHA-1 hash. SHA-256 (part of SHA-2) and SHA-3 are the current standards. Passwords need special slow hashes such as Argon2 or bcrypt.

Read or watch next

Related terms

Cite this page Encryption Observer, “Hash functions”, encryption.observer/terms/hash-function/, checked December 2026.