Professional Documents
Culture Documents
Diffusion and confusion How Mary Queen of Scots lost her head Various hand operable ciphers Various Enigmas
Diffusion
Permuting the elements from place to place in a seemingly random fashion Permutations rather than random scrambles must be used so the rearrangement can be undone
Confusion methods
Monoalphabetic substitution
Trivial example Caesar cipher
He replaced each letter of the plaintext by one three letters before Weakness is the fixed scheme once diagnosed, the Gauls win
Polyalphabetic substitution
A sequence of permutation alphabets is used Methods include
Vigenere table (very simplistic) Code strips and such (bulky) Rotor machine
Comments on permutations
A permutation is
A one-to-one mapping of a set onto itself With the underlying operation it forms a group (more later) A permutation of a permutation is still a permutation An substitution alphabet is a permutation, but the resulting cipher is not a permutation Permutations have unique inverses The simple transposition ciphers are permutations
Diffusion methods
Transposition ciphers
General idea is to rearrange the characters without changing them to produce a random-appearing text. Example Playfair cipher named for its inventor
L L Z U N Y R Z T X N Y L M P U Z N C U D S L M Z T T E R - W I S E L Y - W I T H D R E W - F R O M - T H E E Z P U D D S B E D R O O M -
' '
Note the use of the frequency table A bit easier Excel wasnt available in those days These often have nonstandard letter frequencies Also they have blanks
Conventional crypto - Noack
Note: This is nothing but a monoalphabetic cipher with some word substitution
From Singh, Simon, The Code Book
Weaknesses
Only one simple shifted translation alphabet Relatively short period Can be broken by frequency analysis of spaced groups Could be strengthened somewhat with a longer keyword and different alphabets