a) 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".
To decrypt the given cipher texts, we will follow the specific decryption steps for the Affine cipher and the Vigenère cipher.
---
i) Affine Cipher (Key (7, 2))
The Affine cipher encryption function is:
$$
E(x) = (ax + b) \mod 26
$$
Where `a` is the multiplicative key, and `b` is the additive key. The decryption function is:
$$
D(y) = a^{-1}(y - b) \mod 26
$$
To decrypt the message, we need to find the modular inverse of `a` (which is 7 in this case).
1. Find $a^{-1} \mod 26$, where $a = 7$.
We need to find an integer $x$ such that:
$$
7x \equiv 1 \mod 26
$$
Using the Extended Euclidean Algorithm, we find that $7^{-1} \equiv 15 \mod 26$.
2. Now, the decryption function becomes:
$$
D(y) = 15(y - 2) \mod 26
$$
3. Applying this to each character in the cipher text "CBBGYAEBBFZCFEPXYAEBB", we first convert each letter into its corresponding number (A=0, B=1, ..., Z=25):
* C -> 2
* B -> 1
* B -> 1
* G -> 6
* Y -> 24
* A -> 0
* E -> 4
* B -> 1
* B -> 1
* F -> 5
* Z -> 25
* C -> 2
* F -> 5
* E -> 4
* P -> 15
* X -> 23
* Y -> 24
* A -> 0
* E -> 4
* B -> 1
* B -> 1
4. Now, decrypt each character:
$$
D(2) = 15(2 - 2) \mod 26 = 0 \quad \Rightarrow \quad A
$$
$$
D(1) = 15(1 - 2) \mod 26 = 15 \quad \Rightarrow \quad P
$$
$$
D(1) = 15(1 - 2) \mod 26 = 15 \quad \Rightarrow \quad P
$$
$$
D(6) = 15(6 - 2) \mod 26 = 60 \mod 26 = 8 \quad \Rightarrow \quad I
$$
$$
D(24) = 15(24 - 2) \mod 26 = 330 \mod 26 = 20 \quad \Rightarrow \quad U
$$
$$
D(0) = 15(0 - 2) \mod
_____ _______ __________ __________ ________ ______ ___ _________ _____ ______.
____ ____ _________ ___ ________ _____.
______ ________ ______ ____ ________ ____.
___ ___ _____ ______ ________ ___.
_____ ________ ____ ___ ________ ______ __________ ___ ______.
__________ ___ ____ ___ _________ ________ ______.
_______ ____ ______ __________ ___ _______ _________ _____ ______.
_________ __________ _______ ____ ____ __________ ____.
_________ ___ _______ _____ _____ _____ _________.
_____ ________ __________ ______ ______ ________ _______ ___.
_________ ___ __________ __________ _________ _____ __________ _______ ________ ________.
________ ______ _______ __________ ________ ____ _____.
__________ __________ _____ ________ ______ ______ ______ ____.
__________ ______ ___ _______ ______ ____ ____.
_____ _____ _________ _____ ____ _____ ____ _______ _________.
__________ _____ ___ __________ ___ ________ ____ ___ ___ __________.
____ ___ __________ ________ _______ _______ ______ ___ ___.
___ _____ ___ ______ ______ ___.
_____ __________ ___ _______ __________ ____ ________ _____ ______ __________ _________ ____.
________ ______ ___ _____ __________ _______ ________.
_______ ________ _______ ____ _______ __________ _______ _____ ______.
________ _____ ______ _________ _________ __________ ___ ________ _______.
__________ ____ _____ ________ ____.
____ _____ _______ ______ _________ _____ ____ ________ ______ ______.
________ ____ ____ __________ _______ _________ ___ __________ _________ _______.
__________ ________ _____ _________ ___ _______.
__________ ______ ___ ________ __________ _______ _________ __________ __________ ________ _______ _______.
_______ _______ ____ ______ ______ ________ _____ __________ ________ _____ ____.
__________ ________ ___ _____ _______ ___ ____ _________ _______ ___.
______ ____ ___ _____ ______.
______ __________ __________ ____ ______ ____ __________ _________ __________ _________.
____ _________ ______ ________ __________ _________ ___ _______ ____ _________ ___ _________.
______ _________ __________ ________ ____ _________ ___ _______ __________ ______ ________ __________.
______ ______ _______ _______ ____ _______ ____ _______ ___ ________ _________.
____ ______ _______ _______ _______ ________.
_____ __________ ____ __________ ____ _____ ________ ________ _____.
______ _________ ______ _________ _____ __________ ___ _________.
__________ _________ _______ ________ __________ _________ ______ __________ ______ ___.
___ _________ _________ _______ _____ ________ _________.
____ _____ ______ ______ _______ ____ __________ ___ ________.
_____ _____ ____ _________ __________ _______ ___ _______ ______ __________ ____.
_______ _______ ____ _______ ____ __________ ___ ____ ______ _______.
_____ ________ ______ ______ ____ __________ ____ __________ ______.
______ _____ ______ __________ ________ _____ _________ ____ ___.
______ _______ _____ ____ ____ ________ _______ _____ _____ ______ _____.
____ ______ __________ ____ ______ __________ _______ _________.
___ ___ _______ __________ _____ ___ _____ _____ ___ _____.
________ _________ ___ _____ __________ ________ _____ ______ _______ ___.
_________ _______ __________ ____ _________ _________ ___ _______ ____ __________ _____ ____.
_______ ______ ___ ____ ___ ___ ______ _________ ________ ___ __________ ___.
___ ___ ___ ______ ___ ____ ________ _______.
___ _____ _____ ____ _____ _____ ______ ______.
_____ ____ _______ _______ ____.
_________ ________ ______ _____ ____ _____ ____ ___.
________ ______ ___ _______ ___ _________ ______ ____ _________ _______ ________.
____ ___ ________ ______ ________ ___ ___ __________ ___ _______ _________.
________ ______ _________ _____ _____ _________ _____ _____ ________.
____ __________ __________ ___ __________ __________ ______ _______ ____.
__________ ______ ___ ________ _____ _______ _____.
______ ________ _________ ___ ___ _____ __________ _______.
______ ______ ____ _______ _________ _____ _____ ___.
________ _______ ____ ___ ________ __________ _____.
__________ _________ ___ _____ _______.
_________ _________ _________ _________ ___ ______ ____ __________ ________ ________.
___ ____ _________ __________ ____ __________ ________ __________ _________ _________ ______ ______.
________ _______ _____ _____ _______ _______ _________ ______ _____ _________.
___ ___ _________ _________ _______ _______ _____ ____ ________ _________ _____.
_________ _______ __________ ___ _______ ____ _________ ______ ____.
____ ______ _______ ________ ______ _____.
______ ___ _____ ____ __________ _________ __________.
__________ ___ __________ ________ _____ ______ _________.
______ _____ _________ ____ ______ _________ ______ ______ ___ ___ ________ _______.
______ __________ ____ __________ _____.
____ _________ ____ ____ ____ _______ __________ _____ _____ _____ ____.
__________ __________ ____ _____ ____ ____ ________ _____ _____ ______.
______ ____ ________ _________ _______ _____ _________ __________.
_____ ________ ________ ____ ________ _______ ___ _________ ________ ____ _________.
____ ____ ________ __________ _______.
____ _____ _______ _______ ______ _________ _______ _________ ________.
_________ ________ ____ _____ _______ ___ _________ ________ __________.
__________ _______ _____ _______ ______.
_______ ____ __________ ______ ______ ___.
____ _______ ______ _____ ______ ______ ________ ______ ____.
______ _______ _________ _________ _____ ____ _________.
________ _______ ________ _______ ____ __________.
______ _________ _____ _____ __________ __________.
___ __________ __________ _____ ____ _______ ___ ___ _________ ________ ____.
________ _____ __________ ___ _____ _________.
__________ _____ ______ ________ __________ ________ _______ _________ _____.
___ ___ _____ ______ __________ ___ ______ ____ __________ _________ ___.
__________ ____ __________ __________ __________ ______.
____ __________ __________ _________ _________.
__________ _____ _______ _______ __________ _____ _____ ___ _______ ________ ____ ________.
___ ____ ____ ____ ________ _________ ___ _____.
___ __________ ___ _______ _____ _______ _____.
____ _______ ________ ______ _________ __________ ______ _____ ___ _________ ________.
_________ ________ _________ __________ _______ _________.
_______ _____ __________ ________ _________ ____ __________.
________ _____ _______ ____ _________ ____ ________.
_______ __________ _____ _______ ___ _________ _____ ___.
___ _____ __________ __________ ________ _______ ________ _________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required