Vigenère cipher
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.
For example, if the plaintext is attacking tonight
and the key is OCULORHINOLARINGOLOGY
, then
- the first letter
a
of the plaintext is shifted by 14 positions in the alphabet (because the first letterO
of the key is the 14th letter of the alphabet, counting from 0), yieldingo
; - the second letter
t
is shifted by 2 (because the second letterC
of the key means 2) yieldingv
; - the third letter
t
is shifted by 20 (U
) yieldingn
, with wrap-around;
and so on; yielding the message ovnlqbpvt hznzouz
. 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.