The history of secret codes in war is incredible.  The expansion of communication also brought on an expansion of spying.  Check out this video about the Navajo code talkers who helped communicate messages during World War II.