ArticleslgStudy

science

Vigenère cipher

Vigenère cipher is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Vigenère cipher rather than just read about it. In short: The Vigenère cipher (French pronunciation: [viʒnɛːʁ]) is a method of encrypting alphabetic text where each letter of the plaintext is encoded with a different Caesar cipher, whose increment is determined by the corresponding letter of another text, the key. In a Caesar cipher, each letter of the alphabet is shifted along some number of places.

Vigenère cipher — main illustration
Vigenère cipher — illustration

Key takeaways

  • Vigenère cipher belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Vigenère cipher to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Vigenère cipher from memory before moving on to harder problems.

Reference excerpt

The Vigenère cipher (French pronunciation: [viʒnɛːʁ]) is a method of encrypting alphabetic text where each letter of the plaintext is encoded with a different Caesar cipher, whose increment is determined by the corresponding letter of another text, the key. In a Caesar cipher, each letter of the alphabet is shifted along some number of places. In a Caesar cipher of shift 3, a would become D, b would become E, y would become B and so on. The Vigenère cipher has several Caesar ciphers in sequence with different shift values. For example, if the plaintext is attacking tonight and the key is oculorhinolaryngology, then

the first letter of the plaintext, a, is shifted by 14 positions in the alphabet (because the first letter of the key, o, is the 14th letter of the alphabet, counting from zero), yielding o; the second letter, t, is shifted by 2 (because the second letter of the key, c, is the 2nd letter of the alphabet, counting from zero) yielding v; the third letter, t, is shifted by 20 (u), yielding n, with wrap-around; and so on. Traditionally spaces and punctuation are removed prior to encryption and reintroduced afterwards.

In this example the tenth letter of the plaintext t is shifted by 14 positions (because the tenth letter of the key o is the 14th letter of the alphabet, counting from zero). Therefore, the encryption yields the message ovnlqbpvt hznzeuz. If the recipient of the message knows the key, they can recover the plaintext by reversing this process. The Vigenère cipher is therefore a special case of a polyalphabetic substitution. First described by Giovan Battista Bellaso in 1553, the cipher is easy to understand and implement, but it resisted all attempts to break it until 1863, three centuries later. This earned it the description le chiffrage indéchiffrable (French for 'the indecipherable cipher'). Many people have tried to implement encryption schemes that are essentially Vigenère ciphers. In 1863, Friedrich Kasiski was the first to publish a general method of deciphering Vigenère ciphers. In the 19th century, the scheme was misattributed to Blaise de Vigenère (1523–1596) and so acquired its present name.

History The very first well-documented description of a polyalphabetic cipher was by Leon Battista Alberti around 1467 and used a metal cipher disk to switch between cipher alphabets. Alberti's system only switched alphabets after several words, and switches were indicated by writing the letter of the corresponding alphabet in the ciphertext. Later, Johannes Trithemius, in his work Polygraphia (which was completed in manuscript form in 1508 but first published in 1518), invented the tabula recta, a critical component of the Vigenère cipher. The Trithemius cipher, however, provided a progressive, rather rigid and predictable system for switching between cipher alphabets. In 1586 Blaise de Vigenère published a type of polyalphabetic cipher called an autokey cipher – because its key is based on the original plaintext – before the court of Henry III of France. The cipher now known as the Vigenère cipher, however, is based on that originally described by Giovan Battista Bellaso in his 1553 book La cifra del Sig. Giovan Battista Bellaso. He built upon the tabula recta of Trithemius but added a repeating "countersign" (a key) to switch cipher alphabets every letter. Whereas Alberti and Trithemius used a fixed pattern of substitutions, Bellaso's scheme meant the pattern of substitutions could be easily changed, simply by selecting a new key. Keys were typically single words or short phrases, known to both parties in advance, or transmitted "out of band" along with the message, Bellaso's method thus required strong security for only the key. As it is relatively easy to secure a short key phrase, such as by a previous private conversation, Bellaso's system was considerably more secure. However, as opposed to the modern Vigenère cipher, Bellaso's cipher did not have 26 different "shifts" (different Caesar's ciphers) for every letter, instead having 13 shifts for pairs of letters. In the 19th century, the invention of this cipher, essentially designed by Bellaso, was misattributed to Vigenère. David Kahn, in his book The Codebreakers, lamented this misattribution, saying that history had "ignored this important contribution and instead named a regressive and elementary cipher for him [Vigenère] though he had nothing to do with it". The Vigenère cipher gained a reputation for being exceptionally strong. Noted author and mathematician Charles Lutwidge Dodgson (Lewis Carroll) called the Vigenère cipher unbreakable in his 1868 piece "The Alphabet Cipher" in a children's magazine. In 1917, Scientific American described the Vigenère cipher as "impossible of translation". Charles Babbage is known to have broken a variant of the cipher as early as 1854 but did not publish his work. One hypothesis is that he intentionally kept the general method secret, since he was a cryptographical adviser to his friend, Rear-Admiral Sir Francis Beaufort, during the Crimean War. Kasiski entirely broke the cipher and published the technique in the 19th century, but even in the 16th century, some skilled cryptanalysts could occasionally break the cipher.

The Vigenère cipher is simple enough to be a field cipher if it is used in conjunction with cipher disks. The Confederate States of America, for example, used a brass cipher disk to implement the Vigenère cipher during the American Civil War. The Confederacy's messages were far from secret, and the Union regularly cracked its messages. Throughout the war, the Confederate leadership primarily relied upon three key phrases: "Manchester Bluff", "Complete Victory" and, as the war came to a close, "Come Retribution". A Vigenère cipher with a completely random (and non-reusable) key which is as long as the message becomes a one-time pad, a theoretically unbreakable cipher. Gilbert Vernam tried to repair the broken cipher (creating the Vernam–Vigenère cipher in 1918), but the technology he used was so cumbersome as to be impracticable.

Tabula recta

For a visual way to encrypt and decrypt text, a table of alphabets can be used. The tabula recta, Vigenère square, or Vigenère table has the alphabet written out 26 times in different rows, with each alphabet shifted cyclically to the left compared to the previous alphabet, corresponding to the 26 possible Caesar ciphers. For example, suppose that the plaintext to be encrypted is

… excerpt ends here. Continue reading the full article.

Illustrations

Vigenère cipher: The Vigenère cipher is named after Blaise de Vigenère (pictured), although Giovan Battista Bellaso had invented it before Vigenère described his autokey cipher.
The Vigenère cipher is named after Blaise de Vigenère (pictured), although Giovan Battista Bellaso had invented it before Vigenère described his autokey cipher.
Vigenère cipher: A reproduction of the Confederacy's cipher disk used in the American Civil War on display in the National Cryptologic Museum
A reproduction of the Confederacy's cipher disk used in the American Civil War on display in the National Cryptologic Museum
Vigenère cipher: Cryptographic slide rule used as a calculation aid by the Swiss Army between 1914 and 1940
Cryptographic slide rule used as a calculation aid by the Swiss Army between 1914 and 1940
Vigenère cipher: The Vigenère square or Vigenère table, also known as the tabula recta, can be used for encryption and decryption.
The Vigenère square or Vigenère table, also known as the tabula recta, can be used for encryption and decryption.
Vigenère cipher: Confederate cipher wheel, captured at the surrender of Mobile, Alabama, in May 1865 – National Cryptologic Museum
Confederate cipher wheel, captured at the surrender of Mobile, Alabama, in May 1865 – National Cryptologic Museum

Worked examples

Example 1 — a first encounter with Vigenère cipher

Start with the simplest possible case. Write down what Vigenère cipher claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Vigenère cipher before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Vigenère cipher ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Vigenère cipher

In research
Vigenère cipher appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Vigenère cipher in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Vigenère cipher is common in secondary-school and first-year university syllabi. It links to neighbouring topics Classical ciphers, Stream ciphers, so understanding it makes those chapters shorter.
In everyday life
Look for Vigenère cipher outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Vigenère cipher” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Vigenère cipher in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Vigenère cipher means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Vigenère cipher out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Vigenère cipher in simple terms?

The Vigenère cipher (French pronunciation: [viʒnɛːʁ]) is a method of encrypting alphabetic text where each letter of the plaintext is encoded with a different Caesar cipher, whose increment is determined by the corresponding letter of another text, the key. In a Caesar cipher, each letter of the al…

Why does Vigenère cipher matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Vigenère cipher?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Vigenère cipher.

Tags

  • Classical ciphers
  • Stream ciphers

Keep exploring