The Origins of Secret Writing: A Historical Journey Through Cryptography
The Origins of Secret Writing: A Historical Journey Through Cryptography
The human desire to conceal information from prying eyes is not a modern phenomenon born of digital anxiety. It stretches back to the earliest organized societies, where military commanders sought to protect battle plans, monarchs guarded dynastic secrets, and lovers crafted hidden messages in plain sight. Understanding *why* humans developed cryptography—and how these techniques evolved from rudimentary substitutions to mathematically sophisticated systems—provides essential context for grasping modern information security. This chapter traces that remarkable journey from ancient clay tablets to the cryptographic machines of the twentieth century, establishing the foundational vocabulary and conceptual framework upon which all subsequent chapters build. The central question animating this historical survey remains as relevant today as it was millennia ago: how do we communicate sensitive information across insecure channels while ensuring that only intended recipients can comprehend the message?
Defining the Discipline: Cryptography, Cryptanalysis, and Steganography
Before proceeding further, precise terminology must be established. Cryptography, cryptanalysis, and steganography are related but distinct disciplines within the broader field of information security, and conflating them leads to fundamental misunderstandings about how information protection operates.
Cryptography (from the Greek *kryptós*, meaning "hidden," and *gráphein*, meaning "to write") is the practice and study of techniques for secure communication in the presence of adversaries. More formally, cryptography encompasses the design and implementation of systems that accomplish four primary security objectives: confidentiality, integrity, authentication, and non-repudiation. A cryptographic system transforms readable information into an unreadable format and back again, using mathematical algorithms and secret values called keys. The transformation process itself is called encryption, and its reverse is decryption.
Cryptanalysis (from the Greek *kryptós* and *analýein*, meaning "to loosen" or "to untie") is the complementary discipline concerned with defeating cryptographic techniques—that is, with recovering the original information without access to the legitimate key. Cryptanalysis represents the adversarial perspective within cryptography, and its practitioners seek to exploit weaknesses in cipher systems, implementation errors, or human factors to break encrypted communications. The relationship between cryptography and cryptanalysis is one of perpetual competition; as cryptographic techniques improve, cryptanalytic methods advance in response, and vice versa. This dynamic tension has driven the field forward for centuries and continues to shape modern cryptographic development.
Steganography (from the Greek *steganos*, meaning "covered" or "protected," and *gráphein*) takes a different approach to information protection. Rather than transforming a message into an unreadable form, steganography seeks to hide the very existence of the message itself. Classical steganographic techniques include invisible inks, microdots, messages hidden within cover text or images, and channel-based methods such as null ciphering (embedding a secret message within an apparently innocent communication). While steganography offers certain advantages—it does not attract attention to the fact that hidden communication is occurring—it is not a substitute for cryptography. A hidden message discovered is a message compromised; a well-designed cipher ensures that even if an adversary obtains the ciphertext, they cannot recover the plaintext without the key.
The relationship among these three disciplines can be conceptualized as follows: cryptography scrambles information so that it appears meaningless to unauthorized parties; cryptanalysis attempts to unscramble it despite not being authorized; and steganography attempts to make the information invisible altogether. Modern information security typically employs all three approaches in complementary fashion. For instance, a sensitive message might first be encrypted (cryptography), then embedded within an image file (steganography), while security analysts simultaneously study attempted attacks to identify weaknesses in the encryption scheme (cryptanalysis).
The historical development of these disciplines has followed distinct trajectories. Steganography predates cryptography in many cultural contexts—the ancient Greeks employed wax tablets, hidden tattoos, and various concealment techniques long before systematic substitution ciphers appeared. However, cryptography developed more rapidly once societies became sufficiently organized that the interception of military communications became a serious concern. The emergence of cryptanalysis as a formal discipline required both sophisticated encryption techniques to analyze and sufficiently valuable secrets to motivate the effort.
Ancient Origins: From Egyptian Scribes to Roman Generals
The earliest known evidence of cryptographic writing appears in ancient Egypt, approximately 1900 BCE. Tomb inscriptions in the tomb of the nobleman Khnumhotep II at Beni Hasan contain unusual hieroglyphic symbols that appear to have been intentionally altered rather than representing standard Egyptian writing. While scholars debate whether these alterations served a genuinely cryptographic purpose or simply reflected linguistic evolution or scribal error, the inscriptions represent the earliest documented instance of deliberate textual modification that contemporary researchers have identified as potentially cryptographic in nature.
More unambiguous evidence of early cryptography appears in Mesopotamian sources. Clay tablets from approximately 1500 BCE document the use of a cipher alphabet by Mesopotamian scribes to protect ceramic glaze recipes—valuable commercial secrets whose exposure could undermine the economic advantage of particular workshops. This example illustrates an important principle that persists throughout cryptographic history: the motivation for secrecy extends far beyond military applications to encompass commercial, diplomatic, and personal interests.
The ancient Hebrew scribes employed a simple substitution cipher known as the Atbash cipher (from the first and last letters of the Hebrew alphabet, *aleph-taw-beth-shin*: אתבש). In the Atbash cipher, the first letter of the alphabet is substituted for the last, the second for the second-to-last, and so forth. Thus, in English, Atbash would transform A to Z, B to Y, C to X, and so on. The Atbash cipher appears in several passages of the Hebrew Bible, most notably in Jeremiah 25:26 and 51:41, where the name "Babylon" (בבל) is transformed to "Sheshach" (ששך). While the Atbash substitution may have been used for concealment in certain biblical contexts, its primary purpose among ancient Hebrew scribes appears to have been mystical rather than military—creating alternate names for divine or sensitive concepts.
The Spartans, renowned warriors of ancient Greece, developed one of the earliest known military cryptographic devices: the scytale (Greek: σκυτάλη). The scytale consisted of a cylindrical staff of a specific diameter around which a strip of parchment was wrapped helically. The sender would write the message along the length of the staff with the parchment wrapped around it; when unwrapped, the letters would appear scrambled. The recipient would wrap the parchment around a staff of identical diameter to reconstruct the message. Messages transmitted on the scytale were extremely difficult to intercept and decode without the correct diameter staff—a form of shared key in modern cryptographic terminology.
The cryptographic security of the scytale depended on the diameter of the cylinder rather than any substitution algorithm. Intercepted message