You get the code by getting to the current end of the game. the big crystal is just for aesthetics at the moment, you can't destroy it.
I see, but I only found four of those crystal things I need to destroy and couldn't find the 5th one
You can use the teleportation hub to point you in the right direction.