Two readers sit side by side. A copied badge opens the first and is refused by the second. From the outside they look the same. The difference is the question each one asks.
Three different questions
An access control system may address three separate questions. It helps to keep them apart, because not every system asks all three:
- Identification: who are you claiming to be? The card presents an identifier, such as its number.
- Authentication: can you prove it? The card shows that it's genuine, using a secret only it holds.
- Authorization: is this access allowed? The access control system checks its rules for this credential, this door and this time.
Signing in to a website is a familiar example. Your username identifies you; your password or passkey authenticates you; the site's settings decide what you may do. A number-only badge is like a sign-in page that asks for a username and never asks for the password.
| Question | Number-only reader | Authenticating reader |
|---|---|---|
| Identification | Reads the card's number | Reads the card's identifier |
| Authentication | Skipped: the number is taken on trust | The card proves it holds the right secret key |
| Authorization | The access control system decides | The access control system decides, as before |
A reader that only reads
A number-only reader identifies the card and stops there. It passes on whatever number it receives, so any card that sends the right number is accepted. That's why the copied badge from lesson 0.1 works: it says the right number, and saying is all the reader asks for.
A reader that asks for proof
An authenticating reader makes the card prove that it holds a secret key, without the key ever being sent. The reader sends a fresh, random challenge. The card computes an answer from the challenge using its key, inside its chip, and the reader checks the answer. A copied number can't produce that answer, and an answer recorded earlier doesn't match the next challenge. Lesson 1.6 shows exactly how this works.
Cards that can prove themselves come in two broad families:
- Shared-key cards. The card and the system share a secret key, often a different one for each card. That's far stronger than a number, but the readers or the system must also hold secret keys, so those keys need careful protection. Lesson 1.3 explains why.
- Public-key cards, such as PIV cards. The card holds a private key that never leaves it, and carries a certificate binding the matching public key to the card's identifier. The system checks that the card's certificate chains to a trusted issuer, is within its validity period and has not been revoked. It verifies the card's answer using the certified public key, then uses the identifier from that certificate to check access rights. The public key used to check the answer can't be used to produce one. Modules 2 to 4 build up to this.
Try it: two cards, two readers
Both doors are configured to admit this enrolled credential: facility 42, card 12345. The genuine smart card has an identifier and a secret key. The copy has only the identifier. Present each card to each kind of reader and see which combinations open the door. This is a simulation: lesson 1.6 runs the real cryptography.
| Card | Number-only reader | Authenticating reader |
|---|---|---|
| Genuine smart cardidentifier + secret key | ||
| Copyidentifier only |
Proving the card isn't proving the person
A valid response shows that the credential's key took part in this exchange. By itself, it doesn't establish who was at the door: a lost or stolen genuine card still answers correctly. Where that matters, the door also asks for something the person knows or is, such as a PIN or a fingerprint. Lesson 4.5 covers these extra factors.
Go deeperOptional technical detail for readers who want more
Who checks whom
In this lesson the reader checks the card. Some card systems also have the card check the reader, called mutual authentication, so that a fake reader can't use the card. Either way, the security comes from a secret that's used but never revealed.
Relayed exchanges
A fresh challenge stops an attacker from reusing an answer recorded earlier. It doesn't stop a live relay, in which an attacker near the real card forwards the reader's challenge to it and passes its answer back in real time. Lesson 1.6 explains relays and the defenses against them.
Factors
Authentication factors are usually grouped as something you have (a card), something you know (a PIN) and something you are (a fingerprint or face). A card that proves itself is a strong "have" factor. A card that only sends a number is a weak one, because the "have" can be copied without taking the card.
Where PIV fits
US federal PIV cards carry identifiers that a reader can read without any cryptography, and also private keys that let the card prove itself. NIST SP 800-116 guides federal facilities to use the authenticating mechanisms, in which the reader challenges the card, rather than trusting an identifier read from it. Module 4 covers these mechanisms.
Sources
Draft lesson, awaiting technical review · Last updated 21 November 2026