Because this is such a highly technical subject, I would like to point out in advance the likelihood that some of what I'm about to say may include information that is incorrect
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