Technology

A card that does its own sums – until its lock was picked

An Oyster card is not just an ID number: it carries your balance and tickets and works out the fare at the gate. That design made it fast and cheap to run, and it is also why a cracked cipher in 2008 forced London to change the chip in every new card.

Why a contactless smartcard?

The magnetic-stripe tickets of the 1990s had three problems. They were slow – TfL put gate throughput at about 40 people a minute with Oyster, against roughly 15–25 a minute with paper and magnetic tickets (TfL's own releases differ on the figure). They were easy to abuse, and London Transport estimated ticketless travel at £30 million a year. And their small stripe could not hold London's increasingly complicated fares or the season tickets, discounts and passes that sit on top of them.

The 1999 specification called for cheap memory cards rather than full microprocessor cards, a gate transaction of 100–300 milliseconds, and a central data warehouse that would poll every station once a day so lost or stolen cards could be blocked overnight. Magnetic tickets were to be kept “for the foreseeable future” alongside the new card.

No published source explains why the MIFARE family was picked over alternatives such as Sony's FeliCa or Calypso. The likeliest explanation is that MIFARE Classic was the cheap, dominant transit chip of 1996–98 and that the readers were built around it, but that is an inference, not a documented decision.

The first-generation chip: MIFARE Classic 1K

First-generation Oysters used the Philips (now NXP) MIFARE Classic 1K. It works at 13.56 MHz under the ISO/IEC 14443 Type A standard and holds 1,024 bytes, split into 16 sectors. Each sector is locked by two keys with its own access rules, leaving 752 bytes for data. Before a reader can read or write a sector's 16-byte blocks it has to authenticate with that sector's key, using NXP's proprietary Crypto-1 cipher and a 48-bit key.

The chip family is rated for a range of up to about 10 cm, but Oyster readers are tuned to a few millimetres – which is why you “touch in” rather than wave. Cards were made for TfL by several manufacturers; Wikipedia names Giesecke & Devrient, Gemalto and SchlumbergerSema, and the supplier ASK had delivered over 18 million Oyster cards by 2013.

How a journey works

Oyster is card-centric: your balance, your tickets and a short history of recent journeys live on the card itself. Each reader decides the outcome at the moment you touch, writes the result back to the card, and later uploads its transactions to the back office in batches. No live connection to a central computer is needed, which is why gates and bus readers keep working even when the network link is down. TfL said in 2009 that a reader picks the right fare in under a fifth of a second from up to 1.83 million permutations; the How fares work page explains how.

Oyster (card-centric)

  1. Touch in: the reader checks for credit or a valid ticket and deducts a maximum entry charge.
  2. Touch out: the reader works out the real fare, refunds the difference and writes the new balance to the card.
  3. Daily caps are applied on the card as the day goes on. Since September 2021 adult cards are also checked overnight for weekly caps, with any refund loaded at the next touch.
  4. Transactions are sent to the back office afterwards.

Contactless bank card (account-based)

  1. Touch in and out: the reader only records the card and the time and place.
  2. Journey data is held in TfL's back office, not on the card.
  3. Fares and caps are calculated after the traffic day ends.
  4. One combined charge is taken from your bank account.

The card-centric design explains two long-standing Oyster quirks. Until 19 July 2017, a top-up bought online had to be collected at a station you nominated in advance and could take up to 24 hours, because the instruction had to be sent out to that station's readers before it could be written to the card; since then it can be collected at any station within about 30 minutes. And fraud could only be caught after the event, once the batch uploads were checked – which is why, in 2008, TfL's defence was that a tampered card “would be stopped within 24 hours”.

The 2008 break

At the Chaos Communication Congress in December 2007, Karsten Nohl and Henryk Plötz presented a partial reverse-engineering of the MIFARE Classic chip and its Crypto-1 cipher. On 7 March 2008 a team at Radboud University Nijmegen in the Netherlands announced a complete break. Their paper, Dismantling MIFARE Classic, states that the attacks were carried out against the London Oyster card: with one or two partial conversations between a card and a genuine reader, the secret key could be recovered in under a second. The weaknesses were the short 48-bit key, a predictable 16-bit random-number generator, and parity bits that leaked parts of the keystream.

In June 2008 Radboud researchers Wouter Teepe and Bart Jacobs used a laptop to add credit to an Oyster card, took free rides on the Underground, and demonstrated that a gate could be put out of action. NXP went to court to stop the paper being published; on 18 July 2008 a Dutch judge refused. TfL responded that the most anyone could gain was a day's free travel before the card was blocked.

Why this was serious for Oyster in particular: because the money is stored on the card and Crypto-1 was its only lock, anyone who recovered the keys could clone a card or simply rewrite its balance. No software update could fix a weakness in the chip itself – the chip had to change.

The switch to DESFire

TfL began issuing cards with NXP's MIFARE DESFire EV1 chip in December 2009, and stopped issuing MIFARE Classic cards in February 2010 (dates from Wikipedia; TfL itself said only that replacement “began last year” when asked in April 2010). Every reader on the network had already been updated to accept both chips, so existing holders did not need to do anything.

DESFire EV1 replaces Crypto-1 with standard, published cryptography – Triple-DES and 128-bit AES – and is certified to Common Criteria EAL4+. It also organises its memory as separate applications with their own keys, which mattered for the Freedom Pass: when it moved off MIFARE Classic, more than a million passes were reissued on cards carrying both the Oyster application and the national ITSO concessionary-travel standard. Security is the only reason documented for the change; whether cost or supply also played a part is not recorded.

The chip has stayed in the same family since. TfL's 2024 card-supply tender asks for 2k MIFARE DESFire EV1 or EV3 chips for 14 card variants and a 4k chip for one more. That framework was awarded in October 2025 to Austria Card, Exceet Card Group, Paragon ID and ESP Systex.

Which cards are first generation?

The official test: turn the card over. If there is no letter “D” in the bottom-left corner of the back, it is a first-generation (MIFARE Classic) card. First-generation cards still work for travel, but they cannot be used with the TfL Oyster and contactless app, and TfL asks holders to swap them. No withdrawal date has been announced.

TfL has never published a list, so the first-generation family has to be worked out from issue dates. On that basis it includes:

  • the 2002 staff and trial cards, and early staff passes such as the “oyster™” Bus Operator card;
  • standard blue cards issued from 30 June 2003 until the changeover, including the red-roundel design;
  • pre-2010 Under-16, 16–17, Student and early Zip photocards, and Veterans cards from the first year of that scheme;
  • Freedom Passes issued before 2010;
  • the 2006–07 Visitor cards and the 2007 Tutankhamun card.

Every commemorative card from the 2011 Royal Wedding onwards post-dates the change, and supplier ASK confirmed DESFire EV1 for the 2012 Jubilee, Summer and Visitor cards. Whether the Barclaycard OnePulse carried Classic or DESFire is unconfirmed, and so is whether any transitional cards exist with a DESFire chip but no “D”. There is no published list of card-number ranges or manufacturer codes that separates the two generations, so the “D” remains the only reliable check.

Sources for this page →