How a phone unlocks a door: a motor that turns the deadbolt for you, and a chip that only obeys a secret, one-time message. This cutaway needs JavaScript.