Smartphones Can Hear the Shape of Your Door Keys

Can you pick a lock with just a smartphone? New research shows that doing so is possible.

Illustration of a Bohr atom model spinning around the words Science Quickly with various science and medicine related icons around the text

Join Our Community of Science Lovers!

This is Scientific American’s 60 Second Science. I’m Sarah Vitak. 

Someone who knows how can pick a door lock using a paper clip. But how about with a smartphone? Researchers at the National University of Singapore wondered if smartphone audio of a key turning a lock could be analyzed to determine the shape of the key. Spoiler alert: under the right conditions, they could create a few very good candidate keys—including the correct key.

Soundarya Ramesh, a grad student who worked on the system, which the researchers called SpiKey, said the work was inspired by previous research where the movement of smartwatches on people’s wrists was actually used to crack combination locks.  


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


“So we were like, ‘Okay, people are doing this for combination locks. Maybe there are some similar insights that we can apply to other kinds of locks.’ And the most prevalent kinds of locks are these physical locks and keys.”

The first task for the team was to get audio from a key opening a lock and see if they could pull useful information from the audio. 

“Whenever you insert a key into a lock, it produces a series of click sounds.”

[CLIP: Audio of key clicks]

The pins of the lock moving over the ridges of the key produces the clicks ...

“Which is not really audible for the human ear because it is too close to be resolvable. But when you hear it from a high-quality microphone, and when you hear it at a slower speed, you can actually hear these click sounds.” 

Once they verified that getting this series of clicks out of audio was possible, they moved to using simulations. Because for the type of lock they chose, the “key space,” or the number of possible unique keys, was 586,584. And they wanted to test how this type of analysis would work on every possible key. So instead of using actual audio recordings, they just simulated where the clicks would be. 

“SpiKey was like a best-case analysis for an attacker. So if he manages to get all the click information precisely, then this is how the results will be.”

Using the time between each click and some clever geometry, the researchers attempted to figure out the shape of each key. Immediately, about half of the possible keys were deemed “unattackable” because some of the clicks those keys would produce would overlap. That left about 330,000 potential key shapes. More analysis was able to narrow down each sound signature to just a handful of key patterns. 

The strategy is a long way from being viable in the real world. For one thing, the method relies on the key being inserted at a constant speed. And the audio element also poses challenges like background noise.

“The main point of this work was not to say, ‘Stop using the keys; they are not really good.’ It’s more about just being aware of what keys we are using, what locks we are using. I think being aware of what is on your front door is actually very important.”

Thanks for listening. For Scientific American’s 60 Second Science, I’m Sarah Vitak.

[The above text is a transcript of this podcast.]

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe