1. Locks
The door locks automatically.
Before meeting your guests, be sure to carefully check that the toilet door locks.
For code type locks that don't need a key there are 'free dial' systems where you can set any number you like and fixed types where the number is set in advance.