"master-key," 1670s, French, literally "pass everywhere," from passer "to pass" (see pass (v.)) + partout "everywhere," from par "through" (see per) + tout "all," from Latin totus (see total (adj.)). Figuratively, "that by means of which one can pass anywhere."