"Crack the safe" style challenges show up in all sorts of games, and the temptation to look for a shortcut is understandable. But typing odd code strings into a text field to force a result is unreliable and can flag your account.
The intended way to open these safes is to solve the in-game clue, whether that's a riddle, a pattern, or a numeric combination hidden nearby. Pay attention to environmental hints, notes, and the exact wording of the puzzle.
If you're stuck, a puzzle-specific walkthrough for your game will walk you through the solution legitimately, keeping your progress and account safe.