Decrypt each of the following cipher texts:
i) Text: "CBBGYAEBBFZCFEPXYAEBB", encrypted with affine cipher with key (7,2).
ii) Text:"KSTYZKESLNZUV", encrypted with Vigenère cipher with key "RESULT".
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.
i) For the affine cipher, the decryption formula is: [ D(y) = a^{-1} (y - b) \mod 26 ] Given key ((a, b) = (7, 2)), we first find the modular inverse of (7 \mod 26). The inverse (7^{-1} \mod 26) is the number (x) such that (7x \equiv 1 \mod 26). Checking multiples: [ 7 \times 15 = 105 \equiv 1 \mod 26 ] So (7^{-1} = 15 \mod 26). The decryption formula becomes: [ D(y) = 15 (y - 2) \mod 26 ] We convert letters to numbers: (A=0, B=1, \dots, Z=25). Ciphertext: C B B G Y A E B B F Z C F E P X Y A E B B Numbers: 2 1 1 6 24 0 4 1 1 5 25 2 5 4 15 23 24 1 4 1 1 Now decrypt each (y): 1. (y = 2) → (D(2) = 15(2-2) = 15 \cdot 0 = 0 \mod 26) → A 2. (y = 1) → (D(1) = 15(1-2) = 15(-1) = -15 \equiv 11 \mod 26) → L 3. (y = 1) → same → L 4. (y = 6) → (15(6-2)=15 \cdot 4=60 \equiv _________ __________ ______ __________ ____ __________ ____.
________ ________ ______ _____ __________ ____ ____ ______.
____ ________ ________ _______ ______ ___ ______.
___ ____ ___ __________ __________ ______ ________ _________.
_____ _______ ___ ____ ________ _________.
_________ _____ _____ ________ ________ _______ _________ __________.
________ ____ _____ ______ __________ _____.
_________ _______ __________ __________ ______ _____ ____ ______.
____ ______ __________ ______ ____ _______.
_______ ____ _______ __________ ________ ____ ________.
____ ___ __________ ___ __________ __________ __________ ________ ________ _______ _____ ___.
___ _________ ___ __________ _____ _________ ____ ___ ___ ___ _________ ______.
__________ __________ ________ _______ ____ ______ ________ ____.
___ ______ _________ ________ ________ _________ _______ ________ ________ _____ __________.
___ ______ __________ _______ ________.
___ ____ _______ _______ ___ ___ ___ ___ __________ ______ ______ ________.
_________ ___ ______ ___ __________ ___ ____.
___ __________ _______ _____ _____ ________ ______ __________ __________ ______.
____ _______ ___ ___ _______ __________ _____ ___ ______ _______.
______ _________ ___ ______ _______ ___ ___ _________.
_____ ___ __________ ____ _____ ____ ____ ____ _______ ____ _____ _________.
__________ _____ ______ ______ _________ _____ ___ _____ ____ ___.
____ ________ ___ ______ _______.
________ ______ ___ _____ ______ ________ ___ _______ ____.
_____ _________ _________ ______ ________ ______ _______.
___ __________ ______ __________ ___ _________ _________.
_____ __________ ____ ________ ________ ____ ____ _______ ________ ___.
________ ___ _______ __________ ______ _______ ________ ___ __________ _________ ____.
________ _______ ___ ____ ______ _______ ________ _______ __________.
___ _________ ________ _____ _____ _________ ___.
________ _____ __________ ______ _____ __________.
________ ______ _____ ________ ______.
_________ _______ ___ _______ __________ ___ _______.
___ _____ __________ ____ _________ ________ _______ ______ ______ ________.
__________ _____ ________ ___ ________ ___ ___ ______ _____ ____ ____ ____.
________ _____ ______ __________ ___ _______ _____ ___ __________ ____ _______.
__________ ________ __________ ________ ___ ____ ____ __________ _________ __________.
______ _______ ____ ____ ______ _______.
____ ________ _____ ___ ____ ________ ______ _____.
___ ___ ______ ________ ________ ______ ________ ____.
_______ ___ _____ __________ __________ ___ ___ ____ __________.
__________ ____ _____ ________ ________ __________ _____ ___ _____ ___.
____ _____ ________ ________ ___ _________ ___ ______ _________ _____ ______ _______.
_________ ___ _______ _____ ________ _________ _____ ______ _____ ________.
______ ______ ________ __________ ___.
_______ _____ ________ ________ __________ __________ ___.
_________ __________ __________ ________ ______ ___.
_______ ___ _________ ______ __________ __________ ___ ______.
____ ___ ___ ____ _________ _____ ___ __________.
________ ____ __________ _______ _________ ________ ______ ____ ____ ______ ___ _______.
________ __________ ________ ____ _________ _________ __________ ____ ________ ____.
_________ ___ ______ ___ ______ _______ ________ ____ ____ ______ ______.
_________ __________ ________ __________ ______ _____ ____ ____ _________ __________.
___ _________ _________ _______ _________.
______ _______ _______ _______ __________ ___ ___ ______ _______ ___.
________ __________ _________ ____ ___ ___ ______ ____ ________ _______ _______.
________ _________ ________ _______ ______.
___ _______ ___ __________ _______ ________.
______ ____ _________ ______ ________ __________ _______ _____ _____ ________ _______.
_______ _____ _____ ________ _______ _____ _______ _____ _____.
________ _________ ___ ___ ______ ___.
_______ ___ __________ _______ _______ _____ ______ ______ ____.
___ ________ ________ ________ ____.
_________ ________ _________ _______ _______ ______ ____ _______ ________ _______ ____.
__________ ___ ________ _________ _______ _____ ________ _____ ____ ___.
_________ _______ __________ __________ ______.
___ _____ ______ ______ ________ _______ _______ ______.
_____ ____ _______ ____ __________ ___ ___ _______ __________ ________ ______ ________.
____ __________ ______ _________ ______ _______.
______ __________ ___ ________ ______ _____ _______ ______ ___ ___ _________.
___ ______ ________ _________ _________ _________ ____.
___ ___ __________ ____ _________ ____ ____.
____ ___ ________ ______ _____ _____ _________ ________ ___ _________ _______ __________.
_____ ___ ___ ______ _________ _________ __________ ___ _________ ____.
_________ ___ _________ __________ ___.
______ ____ ___ ______ _____ ___ ______ _____ ______ _____.
_______ _________ __________ ____ __________ ____ ______ __________ ___ _____.
______ ___ _________ __________ ______ ______ ___ ____ ________ ______ __________.
_____ __________ ________ ____ ___ _________ _________ _____ ___.
__________ ___ _____ _____ _____ ________ _____ _________ ______ __________ ________.
____ ___ ____ ___ ____ _________ ________ _____.
__________ __________ _______ ____ _______ __________.
________ _________ _______ _________ _____ ______ _________ _________ ____.
__________ _________ _____ ___ _________ _____ _____ ____.
______ ____ ____ ______ _________ ___ _______ ___ ________ ____ __________ ___.
___ ______ ___ ______ ___ __________ ______ _________ _____.
______ _________ __________ _____ __________ __________ ______ ____ ________ ________.
________ _______ ______ _______ ____ ___ ___ ________ ______ ______.
______ ____ __________ ________ __________ _____ ___ ____ _____ __________ ______.
________ ______ ____ _______ ____ ______ __________ _____ ____.
_______ ___.
Get Full Answer on WhatsApp