Cryptography - Lecture 4 - Classical Substitution Ciphers cont

This lesson continues the discussion of substitution ciphers, such as vigenère, beaufort, variant-beaufort, and 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
  • be able to derive the "index of coincidence" formula
  • analyse an unknown ciphertext message using the "kasiski method" and "index of coincidence" calculation to determine how many translation alphabets were used
  • and then break the cipher by splitting it into its separate translation alphabets and using known single, double and triple letter frequencies to recover the original message, determine the cipher type, and determine the key used
  • Preliminary Reading

    Stallings, "Cryptography and Network Security", Ch 2.3, pp38-41

    Lecture Content

    Polyalphabetic Ciphers

    1. Polyalphabetic Ciphers
    2. Vigenère Cipher
    3. Vigenère Example
    4. Crypto Aids
    5. Vigenère Tableau
    6. Beauford Cipher
    7. Variant-Beauford Cipher
    8. General Polyalphabetic Cipher
    9. Unicity Distances of Polyalphabetic Ciphers

      Moving to polyalphabetic ciphers does improve the security, but not dramatically. Each additional alphabet adds the same amount of work to break, but doesn't dramatically improve the security.

    10. Autokey Cipher
    11. Book Cipher
    12. Problems with Autokey and Book Ciphers

    Kasiski Method and the Index of Coincidence

    1. Kasiski Method and the Index of Coincidence
    2. Kasiski Method
    3. Index of Coincidence
    4. Measure of Roughness (MR)
    5. Measure of Roughness (MR) cont
    6. Measure of Roughness (MR) cont
    7. Estimating MR from Ciphertext
    8. Estimating MR from Ciphertext cont
    9. Index of Coincidence
    10. IC and the Number of Alphabets
    11. IC and the Number of Alphabets Table

    Cryptanalysis of Polyalphabetic Ciphers

    1. Cryptanalysis of Polyalphabetic Ciphers

    Summary

    1. Summary

    Exercises

    1. Exercises
      1. encrypt and then decrypt by hand, the text below using each of the following ciphers:
        1. Vigenère with a key of DOG
        2. Beauford with a key of DOG
        3. Variant-Beauford with a key of DOG
        this terminal is no more it has ceased to be its expired and gone
        to meet its maker this is a late terminal its a stiff bereft of
        life it rests in peace if you hadnt nailed it to the bench it
        would be pushing up the daisies this is an xterminal
        

    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 / 6 Feb 2001