The Side Quest
πŸ”Ž

How Tap-To-Pay Works

You tap, you beep, you leave. Behind that half-second is a handshake, a cryptography trick, and a one-time-use number.

#technology#internet#everyday
← All guides

Tap-to-pay takes about 300–500 milliseconds. Inside that blink, your card and the terminal do a full cryptographic dance β€” without ever revealing your real card number.

Step 1 β€” Wake (0 ms)

When you bring the card within ~4 cm of the terminal, the terminal's electromagnetic field powers the card's tiny chip. The card wakes up β€” no battery needed. This is NFC (Near Field Communication), a descendant of RFID.

Step 2 β€” Hello (10–50 ms)

Card and terminal exchange identifiers: "What kind of card are you? Which bank? Which network (Visa, Mastercard, etc.)?" The terminal picks the protocol they both speak.

Step 3 β€” The crypto handshake (50–200 ms)

The card and terminal mutually authenticate. The card generates a one-time-use cryptogram β€” a signed number that proves "I'm the real card, and this transaction is happening right now, at this terminal, for this amount."

The trick: the cryptogram is computed using a secret key that never leaves the card. Even if a thief intercepts the signal, the number is useless for any future transaction. It's a one-time passcode baked into the moment.

Step 4 β€” Off to the bank (200–300 ms)

The terminal sends the cryptogram (plus the amount) through the payment network to your bank. The bank re-derives the expected cryptogram using its copy of your key. If they match, the bank approves. This is tokenization: your real card number isn't transmitted, only the ephemeral proof.

Step 5 β€” Beep (300–500 ms)

The terminal gets the "approved" message, beeps, and you walk away. The whole thing was contactless, mostly offline (only the approval needed the network), and didn't expose your actual card number to the merchant.

Why it's safe

  • The chip's key is never transmitted β€” only the proof it generates.
  • Each transaction's cryptogram is unique and unreplayable.
  • The card must be physically present (within 4 cm), which is why you can't skim a tap card from across the room.

A tap-to-pay is a half-second negotiation in which your card says: "I'm me, this is now, this is how much β€” and I can prove it without telling you the secret."

Written with πŸ’– by Waela Β· Back to The Side Quest

Built with πŸ’– by Waela