The purpose of a checksum is to detect or errors in data.

Checksums are often used in computer to detect tampering.

A single-bit error in a code can be detected by the presence of a bit.

Parity bits are used to single bit errors in data transmission.

The use of parity blocks improves the of data storage.