The fingerprint machine
SHA-256
SHA-256 is a cryptographic hash function: a one-way blender for data. Pour in anything, a single word or an entire book, and it always gives back a fingerprint of exactly the same size: 256 bits, written as 64 characters.
SHA-256 (Secure Hash Algorithm, 256-bit) splits input into 512-bit chunks and runs each through 64 rounds of bit rotations, additions and logic. The output is always a 256-bit digest (32 bytes, 64 hex characters). It is deterministic, one-way (you can’t reverse it) and collision-resistant (no one has found two inputs with the same hash).
- Same input, same hash. Every time, on every computer.
- Any size in, 256 bits out. A letter or a library, same length.
- Tiny change, totally new hash. This is called the avalanche effect.
- No going back. You can’t work out the input from the hash.
In blockchains, every block stores the hash of the block before it. Change one old transaction and its hash changes, breaking every link after it.
Hash (64 hex characters = 256 bits)
Original
One letter changed
0% of the characters changed from a one-letter edit