Ben 10 Alien DNA codes are part of the fictional universe rather than real codes you enter to transform. Within the story's lore, each alien's DNA is imagined as a variation spliced from the genetic code that living creatures share.
In short, the "codes" are a fun piece of world-building. If you are playing a specific Ben 10 game and are stuck on how to unlock an alien, let me know which game, and the method will usually involve completing missions or finding in-game items rather than a secret DNA code.