This is a 4-digit programmable combination lock using logic in Starmade. You can copy and paste it onto a ship or station and using activation modules you can input a combination that then will send an unlock signal if the correct combination is entered. It can be cleared and a new combination programmed in, and using public permission modules you can enable non-faction players a bit more secure control over things. I'll be using this circuit to enable players to lock down a hangar while they park there, and when they leave trigger a circuit reset to open it up for a new player to temporarily reside there.
The front panel is made up of Inputs (Activation Modules) and Outputs (OR Gates) and Display Modules describing what each does. The circuit components include pulse circuits already so all you need to do is hook up any activation modules you have laid out to the corresponding activation module you want it to change, and it will trigger that input. The outputs above the main inputs are used to display whether there is a programmed combination or not, as well as to get feedback on what combination is currently saved.
The main outputs are located on the right. Connect plexdoors to the Locked signal output for them to unlock when the combination is entered. You can also use either OR gate to trigger lighting as well. On the right is also an input to trigger a toggle from locked to unlocked and vice versa without entering the combination. Use this for exit buttons within vaults, or as a lock button for when you're inside your base.
Instructions come on the top of the circuit. Any questions or problems let me know.