Week 3 - Lecture 2
Week 3 - Lecture 2
Week 3 - Lecture 2
Week 3 – Lecture 2
Block Ciphers
M . E . M . A . T . R . H . T . G . P . R . Y
. E . T . E . F . E . T . E . O . A . A . T .
Transposition (Permutation)
Techniques
Decryption
Number of columns = length of ciphertext
Number of rows = key.
Write ciphertext letters on alternate columns,
filling the rows forming rails
Read off as rails
Ciphertext: ECLETXELN
E . C . L . E . T
. X . E . L . N .
Plaintext: EXCELLENT
Block (Columnar)
Transposition Ciphers
Write message in rectangle-row by row, and read it off
column by column; but permute the order of the
columns.
The order of columns becomes the key
Example:
• Plaintext : ATTACK POSTPONED UNTIL TWO AM XYZ
• Ciphertext: TTNA APTM TSUO AODW COIX KNLY PETZ
Key 4 3 1 2 5 6 7
Plaintext A T T A C K P
O S T P O N E
D U N T I L T
W O A M X Y Z
Block Transposition:
Example 01
Keyword: ZEBRAS
Length of Word= 6 (Alphabets in a row)
Alphabetical Order defines permutation. In this case “6 3 2 4 1 5”
Plaintext: “WE ARE DISCOVERED FLEE AT ONCE”
Key 6 3 2 4 1 5
Plaintext W E A R E D
I S C O V E
R E D F L E
E A T O N C
E x x x x x