The Science Behind Locks and Keys