The invention provides a mechanical logic device, a mechanical digital password input device with the mechanical logic device, and a digital password lock. The mechanical logic device comprises a hybrid two-position device. Preset data passwords are set on an outer panel simply, conveniently and safely, digit positions can be adjusted, and the repeated digital password input problem is solved. The invention further provides the digital password lock adopting a way of connecting a primary password with a secondary password, and locking by trying to input the passwords cannot be realized, so that the digital password lock is safer, is suitable for various locks, and is especially suitable for door locks of school dormitories, offices and other places with higher personal mobility. In the mechanical logic device of the mechanical digital password input device, a combined locking mechanism is only adopted to solve the problem of input of data with multiple digit positions, so that the size is smaller, the structure is simpler, and the cost is lower. The mechanical logic device adopts a movable component, and is adjustable in digit position. The application of the mechanical logic device in industrial control is extended.