F3 Card data: PAN, Luhn, tracks and service code

Needs: Free account

Lesson F3: What is on a card and how to read it: the PAN and its check digit, track data, the service code, masking.

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

Before any cryptography, a terminal reads data from the card and has to judge it:

  • Is the card number plausible?
  • Has the card expired?
  • Does it have a chip that should be used instead?
  • Is a PIN required?

The answers come from the PAN, the expiry date and the service code.

In the full lesson

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

What module F3 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.