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.
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.
In plain words
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.
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
- Introduction to Cryptography by Christof PaarChristof Paar, Ruhr University Bochum (YouTube, 2014), lecture series
- Network and Computer SecurityMIT OpenCourseWare (6.857, Spring 2014), course
- Describe concepts of cryptographyMicrosoft Learn, course
- But how does bitcoin actually work?3Blue1Brown, video
- Hashing Algorithms and SecurityComputerphile (2013), video
- What are Digital Signatures?Computerphile (2020), video
Related terms
Cite this page Encryption Observer, “Hash functions”, encryption.observer/terms/hash-function/, checked December 2026.