There are tiny markings that can be found on the face of the lock. Those give you a hint for the puzzle you're currently facing.
For the second puzzle, the hint is a hexagon.
[Additional hint, don't look if you want to try and solve it] The solution can be found within the puzzle screen, but you might have to look a little closer somehow.