A capsule lock is a type of lock used in spacecraft and spacecraft hatches to secure the door, ensuring the safety of the crew by preventing accidental egress or egress during flight. The lock can be either manually operated or automated, depending on the system's design. The primary purpose of a capsule lock is to maintain a safe environment for the crew by preventing unexpected exit or entry during flight. These locks are designed to withstand extreme environmental conditions and other environmental factors that may be encountered during space travel. Some capsule locks require a combination of mechanical and electronic systems to function securely.