b) Another version of the columnar transposition cipher is the cipher using a key word. In this cipher, we encrypt as follows: Given a key word, we remove all the duplicate characters in the key word. For example, if the key word is 'SECRET", we remove the second 'E' and use 'SECRT" as the key word. To encrypt, we form a table as follows: In the first row, we write down the key word. In the following rows, we write the plaintext. Suppose we want to encrypt the text 'ATTACKATDAWN'. We make a table as follows:
| S | E | C | R | T |
| A | T | T | A | C |
| K | A | T | D | A |
| W | N | X | X | X |
Then we read off the columns in alphabetical order. We first read the column under 'C', followed by the columns under 'E', 'R', 'S' and 'T". We get the cipher text TTX TAN ADX AKW CAX. To decrypt, we reverse the process. Note that, since we know the length of the keyword, we can find the length of the columns by dividing the length of the message by the length of the keyword.
Given the ciphertext 'HNDWUEOESSRORUTXLARFASUXTINOOGFNEGASTORX' and the key word 'LANCE', find the plaintext.
Let keyword = LANCE → alphabetical order: A, C, E, L, N. Ciphertext length = 40; with 5 columns ⇒ 8 rows, no padding needed (except what may be in text). Split ciphertext into 5 chunks of 8, in _________ _____ ______ ________ ____ ________ ________ __________ _______.
____ ___ _______ _________ ____.
________ ________ _____ __________ ____ _________ _____ ____ _________ ______ ___ ______.
________ ______ ___ ____ ______ __________ _______ ______.
_______ _____ ______ _______ ________.
_____ ____ ______ _________ _________ __________ ______ __________ ___ __________ ___ ______.
____ __________ _____ ________ ____ ___ ________ ________ _________ ____ _____.
___ _______ ______ ____ ___ _________.
____ _____ ___ ________ _________ ___ _____ _________ ___ _________ ___ ______.
_________ ______ _________ _____ _____ ____ _________ ______ _______ _________ __________.
________ ______ ________ ____ ____ __________.
_____ ____ _____ ______ _______.
_________ ____ ______ ____ __________ ___ __________ ________ __________.
_________ _____ ____ ____ _________.
________ ________ _________ ____ ______ _____ ____.
__________ _________ ________ _________ ______.
_______ ________ _________ _______ ___ ______ ______ ____ ________ ______.
________ __________ ________ ___ ________ _______ ________ __________ __________ ___ _______ _____.
___ _____ _____ ____ ______ _________.
______.
Get Full Answer on WhatsApp