When two locks differ it means the key from one lock will not open the other lock and vice versa. The more differs a lock can have, the more key combinations there are, so the more secure it is. The opposite of 'to differ' is 'to pass' or 'keyed alike'.