ELI5: Explain Like I'm 5

Universal one-way hash function

So, imagine you have a secret toy that you don't want anyone else to see or play with. You want to keep it safe! But, what if you need to show your friend that you have the toy without actually showing them the toy? Well, you can take a picture of the toy and show your friend the picture instead. But, you still have to keep the picture safe too, just like the toy.

That's where a universal one-way hash function comes in, it's like a really heavy-duty toy locker. When you put something in the locker, it gets locked and can't be opened easily. But, there's a really cool thing about this locker: it doesn't just have one key to unlock it, it has an infinite number of keys! Even if someone tries really hard to guess the right key to unlock the locker, it would be almost impossible because there are so many keys.

So, you can take your toy, and put it in the locker. Then, you take a picture of the locked locker and show your friend the picture. They can see you have something in the locker, but they can't see what it is because it's locked with an infinite number of keys.

That's what a universal one-way hash function does with information. It takes information and locks it up with an infinite number of keys. Then it gives you a "picture" of the locked information that others can see, but they can't unlock it without the right key.

This is really useful for keeping passwords safe. Your computer system can take your password, lock it up with an infinite number of keys, and give you a picture of the locked password. Then, when you want to log in, you enter your password and the computer system can quickly unlock it with the right key (which only the computer knows) to check that it's correct.

So, that's a universal one-way hash function: a really heavy-duty toy locker with an infinite number of keys, that locks up information to keep it safe.
Related topics others have asked about: