Explain Like I'm 5

Hash functions,
made simple.

No jargon. No math. Just the ideas behind the technology that keeps your phone, your passwords, and your files safe.

What do you want to understand?

What's a hash function?

🎨

It's like a fingerprint machine for data

Imagine a magic machine. You put anything in — a photo, a word, an entire movie. It always gives you back a short code, like a fingerprint. The same thing in always makes the same fingerprint. But even a tiny change — one letter, one pixel — makes a completely different fingerprint.

🧁

You can't un-bake a cupcake

A hash function is a one-way recipe. You can turn flour, eggs, and sugar into a cupcake — but you can't turn a cupcake back into flour, eggs, and sugar. That's what makes it useful for passwords: your phone stores the "cupcake" (the hash), not the recipe (your password).

Fun fact

Your phone probably runs a hash function thousands of times before you even finish your morning scroll. Every website you visit, every app you open — they all use hashing behind the scenes.