C5 LRC, CRC and check digits

Needs: Free account

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

Sign in to open it. A free account takes a minute.

Sign in Create a free account

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 free account.
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.