How to make a safe that requires a key and a code to open