Crypto Terms, Simple and Double Transposition Ciphers




CS166

Chris Pollett

Aug. 27, 2012

Outline

Crypto

Crypto Terms

Kerckhoffs' Principle

Crypto as a Black Box

Picture or a symmetric crypto system

A generic view of symmetric key crypto

Simple Substitution Cipher

We next study cryptography a little by looking at an example of a special case of a substitution cipher...

Caesar's Cipher Decryption

Quiz

Which of the following is true?

  1. Authentication involves enforcing access control restrictions.
  2. Software bugs do not play a role in information security.
  3. Authorization involves enforcing access control restrictions.

Not-so-Simple Substitution

We can generalize Caesar's shift-by-three cipher to a shift-by-n cipher...

Cryptanalysis of shift-by-n cipher

Least-Simple Simple Substitution

Cryptanalysis of simple substitution ciphers

More Substitution Cryptanalysis

This kinds of codes were broken before computers, so we know it can be done -- we just have to clever.

English Letter Frequencies

Yet More Substitution Cryptanalysis

Looking at the frequency counts for:

PBFPVYFBQXZTYFPBFEQJHDXXQVAPTPQJKTOYQWIPBVWLXTOXBTF
XQWAXBVCXQWAXFQJVWLEQNTOZQGGQLFXQWAKVWLXQWAEBIPBFXF
QVXGTVJVWLBTPQWAEBFPBFHCVLXBQUFEVWLXGDPEQVPQGVPPBFT
IXPFHXZHVFAGFOTHFEFBQUFTDHZBQPOTHXTYFTODXQHFTDPTOGH
FQPBQWAQJJTODXQHFOQPWTBDHHIXQVAPBFZQHCFWPFHPBFIPBQW
KFABVYYDZBOTHPBQPQJTQOTOGHFQAPBFEQJHDXXQVAVXEBQPEFZ
BVFOJIWFFACFCCFHQWAUVWFLQHGFXVAFXQHFUFHILTTAVWAFFAW
TEVOITDHFHFQAITIXPFHXAFQHEFZQWGFLVWPTOFFA

We get:

 A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z
21 26  6 10 12 51 10 25 10  9  3 10  0  1 15 28 42  0  0 27  4 24 22 28  6  8

So we might guess F represents the letter e; Q, the letter T; and so on for the most frequent letter. One checks if the decryptions make sense and work back-and-forth to get more of the letters.

Cryptanalysis Terminology

Double Transposition Cipher