1 / 8

Playfair ciphers

Playfair encryption. Break plaintext into letter pairsIf a pair would contain double letters, split with x Pad end with xhellothere becomes he lx lo th er exFor each pair,If they are in the same row, replace each with the letter to its right (mod 5)he ? KGIf they are in the same column, rep

landry
Download Presentation

Playfair ciphers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Playfair ciphers Matrix-based block cipher used in WWI In a 5x5 matrix, write the letters of the word playfair (for example) without dups, and fill in with other letters of the alphabet, except I,J used interchangeably.

    2. Playfair encryption Break plaintext into letter pairs If a pair would contain double letters, split with x Pad end with x hellothere becomes he lx lo th er ex For each pair, If they are in the same row, replace each with the letter to its right (mod 5) he ? KG If they are in the same column, replace each with the letter below it (mod 5) lo ? RV Otherwise, replace each with letter wed get if we swapped their column indices lx ?YV

    3. Weaknesses P is unknown, but structure of its bottom is predictable Can break using digram frequencies Example: If a digram and its reverse both appear often, its probably ER and RE. Each plaintext letter maps to how many possible ciphertext letters? Maps to 5 lettersMaps to 5 letters

    4. Playfair ciphers Used in Dorothy L. Sayers 1932 mystery novel Have His Carcase Marketing beats technology? Invented by Charles Wheatstone Lyon Playfair, a Scottish Baron, promoted it Who got the glory?

    5. ADFGX ciphers Why ADFGX? Morse code for these are very different Combined cryptography with error-correction Matrix 1: 25 letters (i and j merged again) randomly placed Each plaintext letter replaced by its row and column labels hello there ? XA FA AA AA FF DG XA FA DF FA

    6. ADFGX ciphers (2) XA FA AA AA FF DG XA FA DF FA Matrix 2: pick a random keyword and write the previous result under it in scanline order. Shuffle the columns into alphabetical order Then read down the columns

    7. ADFGX ciphers (3) XA FA AA AA DG FF XA FA DF FA Matrix 2: pick a random keyword and write the previous result under it in scanline order. Shuffle the columns into alphabetical order Then read down the columns to get ciphertext: XAXFAFAAAAAADDAGFFFF

    8. ADFGX Decryption easy if you know the original matrix and the keyword. Example? Read about decryption ideas in text Variation: ADFGVX cipher allows 26 letters + 10 digits

More Related