Everyone knows the simplest lock on the door in the form of ... a deadbolt.
It was invented several thousand years ago and little has changed in its design over the years. Nevertheless, I want to suggest that you slightly improve this mechanism, increasing its resistance to hacking.
A little about the design...