When I use the electronic key fob to lock or unlock my car, no other car parked nearby has its locks activated. This is as it should be, but how does the system work?
鈥� In principle, electronic car locks work in much the same way as a traditional lock and key. The key fob transmits a coded binary sequence, and if this matches the code programmed into the receiver then the lock releases.
To guard against the possibility that someone might intercept and record the code for unauthorised use, the more sophisticated systems use an algorithm that allows the code sequence to change with each key press.
Advertisement
Tony Ellis, Titahi Bay, New Zealand
鈥� Key fobs share an encryption key 鈥� a way of scrambling and unscrambling a message 鈥� with the car. This is learned by the car via the manufacturer鈥檚 diagnostic tools. A car will know the encryption keys for a number of key fobs.
Modern fobs have an internal electronic counter that rises each time the button is pressed (usually with a range of several billion), and it is this ever-changing counter number that is encrypted and transmitted. On receipt the car checks that the counter value is close to, and greater than, the previously received number. This protects against replay attacks, where thieves record the key鈥檚 radio transmission with the intent of replaying it to unlock the doors. Once used, a counter code won鈥檛 be valid again in the car鈥檚 lifetime. Other cars within range will try to decode the transmission using their own encryption key, but shouldn鈥檛 see a valid sequence.
To avoid the problems of people who constantly fiddle with the key fob while the car is out of range, missed transmissions are allowed (within reason).
As it isn鈥檛 possible to determine the encryption key, the system stays secure even if you know that several successive messages sent by the fob encrypt numerically adjacent values. For this reason, many thieves have now resorted to investing in diagnostic tools and their own key, which they can add to the car鈥檚 list of known keys.
John Clayton, Lincoln, UK
We pay 拢25 for every answer published in New 女生小视频. To answer this question 鈥� or ask a new one 鈥� email lastword@newscientist.com.
Questions should be scientific enquiries about everyday phenomena, and both questions and answers should be concise. We reserve the right to edit items for clarity and style. Please include a postal address, daytime telephone number and email address.
女生小视频 retains total editorial control over the published content and reserves all rights to reuse question and answer material that has been submitted by readers in any medium or in any format.
You can also submit answers by post to: The Last Word, New 女生小视频, 25 Bedford Street, London WC2E 9ES.