CiphersAutokey. Digraph Ciphers Keyword Substitution. Keyword Poly. One Time Pad. Playfair Cipher. Poly-Alphabetic Ciphers. Random Substitution. Simple Shift. Solitaire Cipher. Square Reverser. Symbol Substitution. Transposition Ciphers. Viginere Cipher. |
National Cipher ChallengeThis years competition starts on Thursday September 27th at 15:30 hrs. The challenges from previous years can be found on the rules page of this year's contest. Last year one of our teams won £25. It would be really good to have several teams entered again this year. Visit the site and get registered! ![]() Previous Cipher Challenges. |
SectionsFrequency Analysis. Digraph Counter EXCEL Programming Tool Box Useful Links |
Section 1. Mono-Alphabetic Substitution Ciphers. | |
Caesar or Shift Ciphers.Julius Caesar, the first Roman emporer, is credited with inventing this type of cipher. To create a simple shift cipher all that you need to do is write out the alphabet and then write the alphabet out again, underneath, but shifted to the left or to the right.
An alternative is to use a cipher wheel to acheive the same effect.
Cut both wheels out. Stick one inside the other and turn the inner wheel to generate your cipher.
To encode your message all you need to do is work through your message (the plaintext) and convert it, one letter at a time, into ciphertext.
Decryption is the reverse of the process. You must know how much the alphabet has been shifted by or your message will be gibberish. |
Symbol Substitution Ciphers.These use a set of symbols instead of the latin alphabet. These codes are very easy to use on wordprocessors. First encipher your message using the cipherwheel or the strip of alphabet letters then highlight the text and convert the message into a crazy font.
|
Keyword Ciphers..These use a keyword to generate the cipher. This is inserted at the start of the alphabet. Be very careful to avoid repeating letters either in the keyword or further on in the cipher alphabet. Messages are encrypted in the same way as before.
|
Random Alphabet.These use a random alphabet. They are the hardest of this type of cipher to break. You must remember how you randomised the alphabet.
|
Liebnitz Ciphers.Liebnitz Binary Specific adaption for codes in binary letter form, aaab abba baba etc. |
Affine Shift CipherThese use a mapping formula to produce a new alphabet. There are more details on the Affine Shift Cipher page but to break these ciphers treat then as a random single substitution cipher. Use frequency analysis to fine likely candidates for ETAOIN etc and then try to spot words like THE. Gradually work through the ciphertext guessing letters and words. |
How to break these ciphers.You need to understand exactly how the cipher works. Try writing your own messages with the cipher first. Can you guess any of the words or letters in the cipher? Look for single letters or repeated groups of letters. Look for one, two or three letter words. Try guessing but make sure that you know which letters are guesses and which are definite.
The other tool that you need is frequency analysis. This helps you to guess which letter is which in the cipher.
|
Challenges.Challenges. Challenges using the 26 letter english alphabet based on the cipher systems described in this section. Symbol Challenges. Challenges using symbols alphabetsbased on the cipher systems described in this section. |
Playfair CipherPlayfair Cipher Notes How to use the Playfair Cipher in the manner employed by the National Cipher Challenge in 2004 for challenge 5b.
Playfair Cipher Wikipedia entry on Playfair Cipher systems. Single Playfair Cipher Nova TV Nazi Secrets Program webpage on the Single Playfair Cipher. This is the system used for Cipher Challenge 2004 5B.
Double Playfair Cipher Nova TV Nazi Secrets Program webpage on the Double Playfair Cipher. This is exactly the system used for Cipher Challenge 2004 7B. double playfair.xls This XL worksheet will decipher the Cipher Challenge 2004 7b double Playfair cipher, provided that you know the right keywords and how to arrange them in the grid. |
Solitaire Cipher.Solitaire Cipher. Wikipedia entry on Solitaire Ciphers. |
Square ReversalSquare Reverser JavaScript square reversal tool. Use this page to switch the columns and rows on a square block of ciphertext. This is a tactic employed to add an extra degree of difficulty to various cypher systems. Suspect that this might have been done if the number of letters is a perfect square and you can't get the cribs that you expect in thetext to work. |
|
Section 2. Transposition Ciphers. | |
Block Shuffle Systems.
|
Railfence Systems.
|
How to break these ciphers. |
Challenges.Railfence Challenges. Challenges using the 26 letter english alphabet based on the cipher systems described in this section. |
Section 3. Poly-Alphabetic Substitution Ciphers. | |
Viginere System.
|
Keyword.
|
Autokey.
|
One Time Pad.
|
How to break these ciphers.
|
Digraph CiphersThere is a huge variety of digraph ciphers. Most use a 26x26 grid with A-Z running across the top and down the side. The plaintext is broken up into two letter pairs. The first letter of the pair is used to find the x coordinate on the grid (across). The second letter gives the y coordinate (down). The grid square indicated contains the letter pair which is substituted for the original plain text pair, or vice versa in some cases. There are 676 double letter pairs which means that digraph ciphers are effectively substitution ciphers with an alphabet of 676 pairs. To break one of these ciphers use Digraph Counter. which counts the letter pairs. Compare the stats from this analysis with those of a large sample of English plaintext; see digraph statistics. Try to spot any "cribs" (known words or phrases) and use these to break into the letter grid. Once you have a few letter pairs in place it might be possible to work out how the letter grid was constructed. Digraph Tools Javascript tools for breaking most basic digraph ciphers. There are at leats 16224 variations on this sytem possible so do some frequency analysis work first. |
Challenges.Poly-Alphabetic Challenges. Challenges using the 26 letter english alphabet based on the cipher systems described in this section. Some of these are very hard indeed. Make sure you have fully understood the workings of the simpler cipher systems before tackling these. |
|
Frequency AnalysisFrequency analysis is the bedrock of decryption. All you do is count how many times each letter appears and compare that letter distribution with that of the target language. If the message has simply been rearranged but not enciphered then the frequency distribution of the message will be the same as that of a standard passage of English.
| ||
EXCEL Programming
| ||
Ready Made Tools.These are tools from last year's cypher challenge. They have not been cleaned up or made user-friendly! CodeTools This is useful for shift ciphers and jobs like striping out spaces or punctuation. It contains evert JavaScript tool which we have written so far. It doesn't look very pretty!
double playfair.xls This XL worksheet will decipher the Cipher Challenge 2004 7b double Playfair cipher, provided that you know the right keywords and how to arrange them in the grid. | ||
Useful LinksCipher Challenge. The national cipher cracking competition homepage. Bletchley Park resources page. Bletchley Park was Britains code breaking HQ during WWII. This page contains lesson plans and downloadable goodies. GCHQ Cipher challenges (2005). GCHQ is Britains current government code breaking agency. Simon Singh's Homepage. Simon Singh is the author of "The Codebook". His website provides an excellent introduction to the whole are a of codes, ciphers and code breaking. Cryptology Links Page This page has a huge number of code cracking resources. We can't vouch for what they might do to your computer though! Wikipedia Wikipedia has lots of very useful pages on all the ciphers that you are likely to encounter in the Cipher Challenge competition. Nova TV Nazi Secrets page. This has a few pages on real cipher systems and three very, very hard decryption problems. | ||
last updated 20th November 2007