A quick tip for next time: it always helps to mention which game you're asking about. That said, I'm fairly sure you mean Knights of the Old Republic (KOTOR).
Here's the honest answer: there isn't a special code that unlocks Naga Sadow's tomb. The developers designed it as a puzzle you're meant to solve yourself. So instead of hunting for a shortcut, dive into the game, pay attention to the clues around the tomb, and work out the sequence. Figuring it out on your own is half the fun.