BAC vs PACE: How Passport NFC Chip Access Control Works

BAC vs PACE: How Passport NFC Chip Access Control Works

Every modern e-passport carries a small contactless chip inside its cover. That chip stores the holder's name, date of birth, document number, and a digital copy of their photo. Because the chip can be read wirelessly, it needs protection. Without it, anyone with an NFC reader could walk past a traveller and quietly copy their personal data.

Access control is the lock on that chip. Before any data can be read, the reader has to prove it is allowed in. Two protocols do this job: Basic Access Control (BAC) and the newer Password Authenticated Connection Establishment (PACE). This guide explains the BAC vs PACE passport question in plain language: how each protocol works, why PACE replaced BAC, and what your verification software needs to support today.

Why a Passport Chip Needs Access Control

A passport chip uses the same short range radio technology found in contactless payment cards. Its range is only a few centimetres, but that is still enough for two risks:

  • Skimming. Someone holds a reader close to a passport, perhaps in a bag or a queue, and reads the chip without the owner noticing.
  • Eavesdropping. Someone listens to the radio traffic between a genuine reader and the passport from a short distance away, and records the data as it passes.

Access control addresses both. It makes sure the reader can only open the chip if it has seen the passport's data page, and it encrypts everything sent between the chip and the reader. The rules are set by the International Civil Aviation Organization in ICAO Doc 9303, which every issuing country follows. If you are new to how the chip fits into the wider verification flow, our complete guide to passport NFC chip reading covers it step by step.

The Key Is Printed on the Passport

Both BAC and PACE rely on the same simple idea: the key that unlocks the chip comes from information printed on the passport itself. If you can physically see the data page, you can open the chip. If you cannot, you are locked out.

That information usually comes from the machine readable zone (MRZ), the two lines of characters at the bottom of the photo page. Three fields are used:

  • The document number
  • The date of birth
  • The date of expiry

Each field has its own check digit, and together they form what is called the MRZ information. This is where passport OCR becomes essential. A phone camera or scanner reads the MRZ, and passport OCR technology turns those printed characters into the exact string needed to derive the access key. If a single digit is misread, the key is wrong and the chip will not open. Accurate OCR is the first thing that has to go right in any chip reading flow.

PACE also supports a second option called the Card Access Number (CAN), a short number printed on some newer passports and ID cards. It works the same way: it is printed, so you need the physical document to read it.

How Basic Access Control (BAC) Works

BAC was the first access control protocol for e-passports and has been in use since the mid 2000s. Nearly every e-passport issued in the world still supports it.

The steps

  • The reader captures the MRZ and builds the MRZ information from the document number, date of birth, and date of expiry.
  • Both the reader and the chip run that information through a hashing function to create the same pair of access keys.
  • The chip sends the reader a random number as a challenge.
  • The reader encrypts a response using the access keys and its own random values, and sends it back.
  • The chip checks the response. If it matches, both sides know they share the same keys.
  • They then derive session keys and use them to encrypt every message for the rest of the read, a mode known as Secure Messaging.

The weakness of BAC

BAC did its job well at first, but researchers soon found a problem. The strength of the key depends entirely on how hard the MRZ information is to guess, and it is less random than it looks. Dates of birth fall in a narrow range, expiry dates follow a predictable pattern, and many countries issue document numbers in sequence.

In some cases, this reduces the real strength of the key to a level that a modern computer can search through. An attacker who records a full conversation between a genuine reader and a passport could later try possible keys offline until one works, and then decrypt the recorded data. BAC was not broken in everyday use, but its security margin had become too thin for a document expected to stay in circulation for ten years.

How PACE Works

PACE, sometimes called Supplemental Access Control (SAC) in ICAO documents, was designed to fix exactly that weakness. It still uses the MRZ or CAN as the starting password, but it uses that password very differently.

The steps

  • The reader reads a small public file on the chip called EF.CardAccess, which lists the PACE options the chip supports.
  • The chip creates a random number, encrypts it with a key derived from the password, and sends it to the reader.
  • The reader decrypts the random number using the same password.
  • Both sides use that random number to set up a fresh key agreement, typically using Diffie Hellman over elliptic curves.
  • Each side contributes its own temporary key, and together they produce a strong shared secret.
  • That secret becomes the session keys for Secure Messaging, and both sides confirm the result before any data is exchanged.

Why PACE is stronger

The key point is that in PACE, the password is only used to start the conversation. The final session keys come from the key agreement, not from the password. That means the strength of the encryption no longer depends on how guessable the MRZ is.

Even if an attacker records the whole exchange, they cannot test passwords offline, because the recording does not contain enough information to check a guess. The only way to try a password is to talk to the real chip, one attempt at a time, which is slow and easy to detect. This gives PACE strong protection even when the password itself is short.

Newer passports can also use a variant called PACE with Chip Authentication Mapping (PACE CAM). It confirms the chip is genuine during the same step that opens it, which saves time at the reader. We explain chip genuineness checks in more detail in our guide to passive, active and chip authentication.

BAC vs PACE at a Glance

Feature BAC PACE
Introduced Mid 2000s, first generation e-passports Around 2010 onwards, newer e-passports and ID cards
Password source MRZ only MRZ or Card Access Number (CAN)
How session keys are made Derived directly from the MRZ Derived from a fresh key agreement
Resistance to offline guessing Weak, recorded sessions can be attacked Strong, recordings cannot be used to test guesses
Cryptography Triple DES based AES with elliptic curve key agreement
Can confirm chip is genuine No, needs a separate check Yes, when using PACE CAM
Status today Legacy, still found on many passports Recommended standard, required in the EU

Where Things Stand Today

Since late 2014, passports issued in the European Union have been required to support PACE. Many other countries have followed. ICAO now recommends PACE for all new documents.

In practice, the world is in a long transition:

  • Most newer passports support both. They offer PACE for modern readers and keep BAC so older readers still work.
  • Some newer documents are PACE only. Certain national ID cards and recent passports have dropped BAC entirely.
  • Older passports are BAC only. Because passports are valid for up to ten years, BAC only documents will keep appearing for some time.

This mix is the main reason the BAC vs PACE question matters to anyone building identity checks. It is part of a broader shift described in our article on passport NFC technology and the future of contactless identification.

What Your SDK Needs to Support

If your app or kiosk reads passport chips, access control is the first technical hurdle. A reliable solution should handle the following:

  • Both BAC and PACE. Supporting only BAC will fail on PACE only documents. Supporting only PACE will fail on older passports. You need both.
  • PACE first, with BAC fallback. The SDK should read EF.CardAccess, use PACE when it is available, and fall back to BAC only when it is not.
  • MRZ and CAN input. MRZ is the common case, but some documents and some users will need the CAN option.
  • Accurate MRZ capture. Strong passport OCR with check digit validation avoids failed unlocks caused by one misread character.
  • The full range of PACE options. Different countries use different curves and mappings, including PACE CAM. Partial support leads to unexplained failures on certain nationalities.
  • Clear error handling. Users should be told whether the problem is a wrong MRZ, a weak NFC connection, or an unsupported document, so they know what to do next.

When you compare options, ask any passport OCR software provider how they handle this fallback logic and how widely their PACE support has been tested across issuing countries. Access control is the doorway to everything else, including data integrity checks and clone detection, so gaps here affect the whole flow. To understand what happens on the chip once the door is open, read What Is an eMRTD Chip and How NFC Passport Chips Work.

Common Myths About BAC and PACE

  • "Access control proves the passport is real." It does not. BAC and PACE only control who can read the chip. Proving the data is genuine and the chip is not a clone needs separate authentication checks.
  • "BAC is broken, so BAC passports are unsafe." BAC still prevents casual skimming. Its weakness is against recorded sessions and offline attacks, which is why PACE is preferred, not why BAC passports should be rejected.
  • "PACE means you no longer need OCR." PACE still needs a password, and in most cases that password comes from the MRZ. OCR remains the starting point.
  • "Every phone can read every passport." Phone NFC hardware varies, and so does software support for PACE options. Results depend on both.

The Bottom Line

BAC and PACE are the locks on a passport's NFC chip. Both use details printed on the passport to make sure only someone holding the document can read it. BAC derives its keys straight from the MRZ, which leaves it open to offline guessing. PACE uses the MRZ or CAN only to start a strong key agreement, which closes that gap and adds options like PACE CAM. With both protocols in circulation, a modern verification flow needs accurate MRZ capture, PACE first with BAC fallback, and broad support for the options different countries use.

Want to see BAC and PACE working on real passports?
Book a demo of Pixdynamics Passport SDK and test MRZ capture, PACE and BAC chip access, and full chip verification with your own documents.