Cryptanalysis

Dr. Alexander Fisher

Duke University

Announcements

Reminder:

  • Final project report due today 5pm.
  • \(>80\)% course evaluations = +1 pt extra credit to project

Cryptanalysis

Basic terminology

  • cryptography: making secret messages (encryption)
    • substitution
    • transposition
  • cryptanalysis: breaking secret messages (decryption)
  • cryptology: the study of cryptography and cryptanalysis
  • plain text: the actual message
  • cipher text: the encrypted message
  • key: information to encode (or decode) cryptographic key
  • symmetric (same key for encryption and decryption)
  • asymmetric (different key to encrypt and decrypt)

Motivation

Diaconis, Persi. “The markov chain monte carlo revolution.” Bulletin of the American Mathematical Society 46.2 (2009): 179-205.

Substitution cipher

  • Idea: each character of plaintext is substitude with another character

Exercise

  • Given the message below is encoded with a substitution cipher, how many possible keys are there?
secret_message
[1] "REART COSFRA COS AU DR UT EUA AU DR ACOA BL ACR MIRLABUE ZCRACRT ABL EUDFRT BE ACR SBEV AU LIPPRT ACR LFBENL OEV OTTUZL UP UIATONRUIL PUTAIER UT AU AOQR OTSL ONOBELA O LRO UP ATUIDFRL OEV DK UGGULBEN REV ACRS"
  • Trying every possible key is known as a “brute force” approach. Chat with your neighbor and develop a strategy better than the brute force approach.

  • Continue the exercise by downloading the file below

download.file(url = "https://sta323-sp23.github.io/scripts/cryptanalysis.qmd",
              destfile = "cryptanalysis.qmd")