Cryptography - Lecture 3 - Classical Substitution Ciphers

This lesson introduces classical cryptographic techniques, which used simple substitution or transposition ciphers. It describes the various types of monoalphabetic substitution ciphers, such as caesar, general, showing how they're used, as well as the techniques used to break them.

Objectives

  • encrypt and decrypt messages using any of the classical substitution ciphers discussed, both by hand and with the assistance of programs
  • understand the concepts of language redundancy and unicity distance
  • Preliminary Reading

    Stallings, "Cryptography and Network Security", Ch 2.3, pp28-33

    Lecture Content

    Classical Encryption Techniques

    1. Classical Encryption Techniques
    2. Caesar Cipher
    3. Cryptanalysis of the Caesar Cipher

    Language Redundancy and Cryptanalaysis

    1. Language Redundancy and Cryptanalaysis
    2. English Letter Frequencies
               ______________________________________________________________
      a  7.25 |*****************************
      b  1.25 |*****
      c  3.50 |**************
      d  4.25 |*****************
      e 12.75 |***************************************************
      f  3.00 |************
      g  2.00 |********
      h  3.50 |**************
      i  7.75 |*******************************
      j  0.25 |*
      k  0.50 |**
      l  3.75 |***************
      m  2.75 |***********
      n  7.75 |*******************************
      o  7.50 |******************************
      p  2.75 |***********
      q  0.50 |**
      r  8.50 |**********************************
      s  6.00 |************************
      t  9.25 |*************************************
      u  3.00 |************
      v  1.50 |******
      w  1.50 |******
      x  0.50 |**
      y  2.25 |*********
      z  0.25 |*
              |______________________________________________________________
      Freq (%)    1   2   3   4   5   6   7   8   9  10  11  12  13  14  15 %
      

      This graph is based on counts done at ADFA in the late 1980's, and used to develop the tables published in Seberry & Pieprzyk.

    3. Other Languages
    4. Use in Cryptanalysis
    5. Table of Common English Single, Double and Triple Letters
      Single LetterDouble LetterTriple Letter
      ETHTHE
      THEAND
      RINTIO
      NERATI
      IREFOR
      OONTHA
      AANTER
      SENRES
    6. Cryptanalysis of a Caesar Cipher

    General Monoalphabetic Cipher

    1. Mixed Monoalphabetic Cipher
    2. Security of the Mixed Monoalphabetic Cipher
    3. General Monoalphabetic Cipher
    4. General Monoalphabetic Cipher Example
    5. Cryptanalysis of General Monoalphabetic Ciphers
    6. Cryptanalysis of General Monoalphabetic Ciphers cont.

    Entropy and Unicity Distance

    1. Entropy
    2. Rate of Langauge
    3. Unicity Distance
    4. Unicity Distances of a Caesar Cipher
    5. Unicity Distances of a General Monoalphabetic Substitution Cipher

    Summary

    1. Summary

    Exercises

    1. Exercises
      1. encrypt and then decrypt by hand, the text below using a general monoalphabetic cipher with a key of "NIFTY":
        the cat only grinned when it saw
        alice it looked good natured she
        thought still it had very long claws
        and a great many teeth so she felt
        that it ought to be treated with respect
        

    Additional References

    For additional information, see:
  • Singh, "The Code Book", Ch 1-2
  • Kahn, "The Code Breakers", Ch 2-8
  • Seberry & Pieprzyk, "Cryptography - An Introduction to Computer Security", 2/e Ch 3.1; 1/e Ch 3.1 pp61-77
  • Sinkov, "Elementary Cryptanalysis", Chs 1,2,3
  • Stinson, "Cryptography: Theory and Practice", Ch 1

  • [Back to CCS3 Lectures]
    Lawrie.Brown@adfa.edu.au / 5 Feb 2001