The safe has a CAM gear system inside it. When you turn the knob on the front, it turns the holed gear inside, which pushes the pin into the side of the vault. The pin then slides into the hole and locks the door.
Below are images of how the safe works from diffrent angles.
Feel free to use this design on any models you want!