I have created a relativly simple code lock with tis 3d that just requires a keypad (theoretically could use a terminal instead), execution module, timer, some form of output such as the redstone module, and optionally an audio module
the code is as follows:
page 1
#DEFINE A 1
#DEFINE B 2
#DEFINE C 3
#DEFINE D 4
#DEFINE INP LEFT
#DEFINE TIME UP
#DEFINE OUT RIGHT
#DEFINE SOUND DOWN
MOV A ACC
SUB INP
JNZ B
ADD 1
SWP
B: MOV B ACC
SUB INP
JNZ C
SWP
ADD 1
SWP
C: MOV C ACC
#BWTM
page 2
SUB INP
JNZ D
SWP
ADD 1
SWP
D: MOV D ACC
SUB INP
JNZ BEEP
SWP
SUB 3
JLZ BEEP
MOV 0X0A50 SOUND
MOV 15 OUT
MOV 400 TIME
MOV TIME ACC
MOV 0 OUT
BEEP: MOV 0X0A54 SOUND
this code lock uses a 4 digit code where each digit can be configured with the A, B, C and D variables at the start of page 1, you can also customize the position of the input, timer, output, and audio with the relevant variables (INP, TIME, OUT, and SOUND) you can also disable the indication sounds by setting sound to nil