the earliest known lock and key device was discovered in the ruins of nineveh the capital of ancient assyria locks such as this were later developed into the egyptian wooden pin lock which consisted of a bolt door fixture and key when the key was inserted pins within the fixture were lifted out of drilled holes within the bolt allowing it to move when the key was removed the pins fell part-way into the bolt preventing movement