One. The working principle of password locks.
A combination lock is a type of lock that opens using a series of numbers or symbols. Mechanical combination locks and numeric combination locks are two common types. The combination for a combination lock is typically a sequence, rather than a true combination. Some combination locks use a single dial to rotate the internal discs or cams, while others use multiple dials with numbers to directly drive the internal mechanism.
Two. Is a password-protected lock more secure than a standard lock?

Let's first analyze our traditional locks, which now incorporate multiple safety measures in their design, resulting in relatively high security. However, opening these locks can also take a significant amount of time. We often see in movies and TV shows that thieves use simple tools like wire to unlock locks easily. Furthermore, traditional locks have a significant drawback: they require carrying a key every day. If the key is lost, the only options are to pick the lock or use force, which is highly inconvenient.
Conversely, combination locks are more convenient. With a combination lock, you only need to remember the combination to open it, avoiding the inconvenience of losing the key. Moreover, because you set the combination yourself, it is much more difficult for someone who doesn't know the combination to open the lock, making combination locks more secure than key locks.