You could do worse than to confuse the meanings of "code" and "cipher"—even cryptographers sometime use the terms as though they had the same meaning. There is, however, a definite distinction between ...
The intriguing world of cryptography has its roots in non-standard hieroglyphics, which were discovered on the walls of an Egyptian tomb in 1900 BC. In India, around 400 BC, “substitution cipher” ...