No, we just used people who spoke Navajo, which is completely impossible to learn for outsiders.
There was a touch more to it than that ... since the Navajo language has no words for airplanes, ships, tanks, the various units of modern military organization, etc. existing Navajo words were somewhat arbitrarily assigned to these things. The result was a code wrapped in a cipher ... that didn't need a machine to operate.