lock—a device used to keep a door, container, or other thing closed and secure, opened with a key or code