The game gives you more hints if you're playing in Easy Mode.
Also, in Easy mode, the game gives you the option to break the lock in the first password. If you don't want to solve the password, you can select the option to break the lock around 10 times, the lock should open.