Interactive Hash Demo

See step by step how a simple hash is calculated. Learn the avalanche effect interactively!

Hashing Steps Overview

  1. Convert each character to ASCII code.
  2. Sum sequentially each value with the current sum.
  3. Apply modulo 256 to keep the value within 0-255.
  4. Convert the final number to hexadecimal.
  5. Observe the avalanche effect: even a small change drastically changes the hash!

Type Your Text

Step-by-Step Calculation

Your steps will appear here as you type.

Hash Result

--

Avalanche Effect

Notice how changing even a single character in your input completely changes the hash. This is what makes hash functions secure: small differences propagate unpredictably!

Why SHA-256 is Much Stronger

Our demo uses a simple hash function for learning. Real hash functions like SHA-256 are far more complex and secure.

SHA-256 is used in Bitcoin and many secure systems. The core idea is the same as our demo: transforming input into a fixed-length fingerprint.

For those who want to explore SHA-256 in full detail, check out sha256algorithm.com.

← Back to Introduction