Hashes: digital fingerprints

Change one letter of a novel and its fingerprint changes completely.

Explorer ยท 7 min ยท Updated 2026-11-08

๐Ÿ’ก A data blender

Put fruit in a blender and you get a smoothie. Same fruit, same smoothie โ€” every time. Add one grape and the smoothie tastes completely different. And nobody can un-blend a smoothie back into fruit. A hash function is a blender for data: same input โ†’ same output; tiny change โ†’ totally different output; and you can't reverse it.

Five properties that matter

PropertyMeaning
DeterministicSame input always gives the same hash
Fixed sizeSHA-256 outputs 256 bits (64 hex characters), whether you hash one word or a whole movie
Avalanche effectChange one bit and about half the output bits flip
One-wayYou can't work backwards from the hash to the input
Collision-resistantFinding two inputs with the same hash is practically impossible

How blockchains use hashes

  • Linking blocks: each block stores the previous block's hash. Edit an old block and its hash changes, breaking every link after it.
  • Mining: Proof-of-Work means finding a block hash below a target (e.g. starting with many zeros).
  • Addresses: Bitcoin addresses are derived from hashes of public keys.
  • Merkle trees: thousands of transactions are summarised into one "root" hash in the block header.

Hash โ‰  encryption

Encryption is reversible with the right key; hashing is not reversible at all. You hash to verify data, you encrypt to hide it.

๐Ÿงฎ Practical example: checking a download

Key takeaways

  • Same input โ†’ same hash; tiny change โ†’ totally different hash.
  • Hashes are one-way and fixed-length.
  • Blocks chain together via previous-block hashes.
  • Mining = searching for a hash below a target.

Education only โ€” not financial advice.