A checksum is a small-sized datum derived from a block of digital data, such as a file or network packet, used to detect errors introduced during storage, transmission, or processing. It is generated by a cryptographic hash function (like SHA-256) or a simpler algorithm (like CRC32), producing a unique, fixed-length string—the checksum value. By comparing the computed checksum of received data against a previously stored or transmitted value, systems can verify data integrity and identify corruption, accidental alteration, or incomplete transfers.
