I asked ChatGPT for a similar explaination using small numbers.
Imagine:
A=0
B=1
C=2
D=3
...
You hash your message by dividing the number by 3 and using the remainder.
Example message: CBD
3 / 2 = 1 with remainder of 1
3 / 1 = 3 with remainder of 0
3 / 3 = 1 with remainder of 0
So the hash is
100
Which is: BAA
You can verify the hash using the seed (3) and the original message. But you can't determine easily the original message from the hash.
This is a bad example because hashes are usually more unique.
At this point it is explained that hash functions are much more complex but this is a very simple example.
I asked ChatGPT for a similar explaination using small numbers.
Imagine: A=0 B=1 C=2 D=3 ...
You hash your message by dividing the number by 3 and using the remainder. Example message: CBD 3 / 2 = 1 with remainder of 1 3 / 1 = 3 with remainder of 0 3 / 3 = 1 with remainder of 0 So the hash is 100 Which is: BAA
You can verify the hash using the seed (3) and the original message. But you can't determine easily the original message from the hash. This is a bad example because hashes are usually more unique.
At this point it is explained that hash functions are much more complex but this is a very simple example.