
Eight bytes that prove your card was there
Every tap ends with an eight-byte cryptogram that only your card and your bank can make. How the keys behind it are built, how the bank checks it, and what breaks it, with working Python and C#.
Topic
What issuing a payment card involves: turning blank chips into cards, the keys they carry and the checks they have to pass.
4 stories

Every tap ends with an eight-byte cryptogram that only your card and your bank can make. How the keys behind it are built, how the bank checks it, and what breaks it, with working Python and C#.

With no network, a card terminal still has to decide whether a chip is genuine. This post builds the EMV certificate chain in Python and C#, checks it the way a terminal does, then breaks it five ways.

Before a chip accepts its keys and PIN, it makes the personalisation machine prove itself. How the handshake works, and why your card's keys are stored nowhere.

Every chip card starts as the same blank chip. What card personalisation is, who does it, what gets written, and why small mistakes hide so well.