How does a car key fob unlock your car from across the street?
Follow along
The short answer
Each press, a counter goes up and a shared secret turns it into a brand-new code; the car accepts each expected code once and ignores replays.
Padlock: shine the torch to look inside
The full explanation
Your car key shouts a password across the car park. So why can't a thief just copy it? Press the button, and a tiny radio fires a coded message at your car, on about 434 megahertz here in the UK.
But the code is never the same twice. Inside the key and the car sits a shared secret and a counter. Every press, the counter goes up, and the secret scrambles it into a brand-new code.
The car knows which codes should come next, and accepts each one only once. Replay an old one, and it's ignored. That's why the password it shouts only works once.
Sources
Insidely's promise: every fact in this episode comes from these sources.
- Rolling code is generated from a counter value; each press increases the counter and makes a new code usable only once; KeeLoq and Hitag-2 are common schemes: National University of Singapore, IV 2022 paper
- UK key fobs operate around 434 MHz (433.92 MHz band): Skoda Octavia vRS security study
- The car tracks the last code received and knows the next several hundred possible codes; a previously used code is rejected: Stanford EE26N course notes
Spotted a mistake? Tell us on Instagram @insidely.hq.