A hash function turns arbitrary data into a short "fingerprint". Change one input character and watch the avalanche effect — the whole hash changes. This is an illustrative model (not a real SHA).

Check whether you understand how a hash function behaves — a short quiz on its properties.
What just happened?
We swapped one character in the input, and the hash changed in nearly half of its bits — with no resemblance to the previous one. This is how a good hash function behaves.
What is a hash function?
It is a mapping that transforms arbitrarily long input data into a hash of fixed length (here: 128 bits, i.e. 32 hex characters). Formally:
Every input — “kot” or a whole sentence — gives a result of the same length . The function is deterministic: the same input always returns the same hash.
The avalanche effect
The key property of cryptographic hash functions: changing one bit of the input changes about half of the output bits, unpredictably:
That is why from the hash alone you cannot “reverse” it to the input, nor guess how a small change will affect the result.
What is it good for?
A hash is a digital “fingerprint” of data. Since every modification changes it, it is used for:
Remember:
A hash function: any input → fixed-length output, deterministically, with an avalanche effect. A small change in the input = a large, unpredictable change in the hash.
Note: this is an illustrative model — we used our own simple mixing function (FNV-1a + finalizer) to show the principle. Real functions (e.g. SHA-256) are much stronger, but obey the same avalanche rule.
It turns data of arbitrary length into a short "fingerprint" (a hash) of fixed length. The same message always produces the same hash.
Changing a single input character changes about half of the output bits — the hashes of similar messages are completely different and unpredictable.
Hence their use in checking data integrity, storing passwords and digital signatures.
It changes it completely (the avalanche effect) — about half of the output bits change.
For checking data integrity, storing passwords and digital signatures.
Teaching? Embed this experiment on your site.
Free widget — paste it on your school site, blog or notes. It links to the full version.
Related experiments