Holland’s Rijksmuseum has in their collection this "detector lock," created by a British locksmith named John Wilkes circa 1680. Made of nothing more complicated than brass and steel, it essentially has two-factor identification as you need to both possess the key and know how to operate the damn thing. And it’s got a clever little counter: