 a polyalphabetic cipher is any cipher based on substitution, using multiple substitution alphabets. the vigenÃ¨re cipher is probably the best-known example of a polyalphabetic cipher, though it is a simplified special case. the enigma machine is more complex but still fundamentally a polyalphabetic substitution cipher. ==history== the alberti cipher by leon battista alberti around 1467 was believed to be the first polyalphabetic cipher. alberti used a mixed alphabet to encrypt a message, but whenever he wanted to, he would switch to a different alphabet, indicating that he had done so by including an uppercase letter or a number in the cryptogram. for this encipherment alberti used a decoder device, his cipher disk, which implemented a polyalphabetic substitution with mixed alphabets. although alberti is usually considered the father of polyalphabetic cipher, it has been claimed that polyalphabetic ciphers may have been developed by the arab cryptologist al kindi 600 years before alberti. johannes trithemius, in a book published after his death, invented a progressive key polyalphabetic cipher called the trithemius cipher. unlike alberti's cipher, which switched alphabets at random intervals, trithemius switched alphabets for each letter of the message. he started with a tabula recta, a square with 26 alphabets in it (although trithemius, writing in latin, used 24 alphabets). each alphabet was shifted one letter to the left from the one above it, and started again with a after reaching z (see image). thumbnail|right|320px|tabula recta trithemius's idea was to encipher the first letter of the message using the first shifted alphabet, so a became b, b became c, etc. the second letter of the message was enciphered using the second shifted alphabet, etc. alberti's cipher disk implemented the same scheme. it had two alphabets, one on a fixed outer ring, and the other on the rotating disk. a letter is enciphered by looking for that letter on the outer ring, and encoding it as the letter underneath it on the disk. the disk started with a underneath b, and the user rotated the disk by one letter after encrypting each letter. the cipher was trivial to break, and alberti's machine implementation not much more difficult. key progression in both cases was poorly concealed from attackers. even alberti's implementation of his polyalphabetic cipher was rather easy to break (the capitalized letter is a major clue to the cryptanalyst). for most of the next several hundred years, the significance of using multiple substitution alphabets was missed by almost everyone. polyalphabetic substitution cipher designers seem to have concentrated on obscuring the ch
Classical_ciphers