How Hashing Works: Checksums and File Integrity
Understanding how hashing works takes one sentence: feed bytes in, get a fixed-length fingerprint out, and identical input always yields an identical digest. The consequences take longer to appreciate. A checksum can prove a 4 GB download arrived intact, that two configs match byte for byte, or that a file changed when nobody expected it to. This guide covers the mechanics, a SHA-256 example you can reproduce yourself, the md5 vs sha256 question, and the small mistakes that make two digests disagree for no obvious reason.