C5 LRC, CRC and check digits

Needs: Supporter

Lesson C5: Error detection on links and in data: LRC framing, CRC parameters, and why a checksum is not a MAC.

This is a supporter feature. Create a free account, then try every supporter feature free for 7 days.

Sign in Create a free account See plans

The opening of the lesson

Why it matters

Bytes get damaged on serial lines, dial-up links, radio links and in files. Checksums let the receiver notice:

  • an LRC on a terminal or ECR link;
  • a CRC in a contactless frame, an EMV QR code or a file;
  • the Luhn digit at the end of every PAN.

They are simple, but a checksum computed over the wrong bytes rejects every message. And a checksum mistaken for security protects nothing.

In the full lesson

  1. The concept
  2. Step by step
  3. In the real world
  4. Common mistakes
  5. What to test

What module C5 covers →

The rest of the lesson opens with a supporter pass, which you can try free for 7 days.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.