πŸ’‘ Jump to Important Questions ↓

Important Questions

Important Questions

Introduction and Classical Ciphers

Asked in 2082Short Question5 Marks
1.
Decrypt the ciphertext 'HI' using Hill Cipher where the key is.
Ciphertext:Β HI,Β Key:Β [5343]\text{Ciphertext: HI, Key: } \begin{bmatrix} 5 & 3 \\ 4 & 3 \end{bmatrix}
[5]

Decryption of Ciphertext 'HI' using Hill Cipher

Hill Cipher decryption requires multiplying the ciphertext vector by the inverse of the key matrix modulo 26.


Given

  • Ciphertext: HI
  • Key Matrix: K=[5343]K = \begin{bmatrix} 5 & 3 \\ 4 & 3 \end{bmatrix}

Step A: Convert Ciphertext to Numbers

  • H = 7, I = 8
  • Ciphertext vector: C=[78]C = \begin{bmatrix} 7 \\ 8 \end{bmatrix}

Step B: Find the Inverse of Key Matrix (mod 26)

i. Calculate Determinant:

det⁑(K)=(5Γ—3)βˆ’(3Γ—4)=15βˆ’12=3\det(K) = (5 \times 3) - (3 \times 4) = 15 - 12 = 3

ii. Find Multiplicative Inverse of det mod 26:

We need 3βˆ’1mod  263^{-1} \mod 26, i.e., find xx such that 3x≑1mod  263x \equiv 1 \mod 26

3Γ—9=27≑1mod  263 \times 9 = 27 \equiv 1 \mod 26

So, 3βˆ’1mod  26=93^{-1} \mod 26 = 9

iii. Find Adjugate Matrix:

adj(K)=[3βˆ’3βˆ’45]\text{adj}(K) = \begin{bmatrix} 3 & -3 \\ -4 & 5 \end{bmatrix}

iv. Compute Inverse Matrix mod 26:

Kβˆ’1=9Γ—[3βˆ’3βˆ’45]mod  26K^{-1} = 9 \times \begin{bmatrix} 3 & -3 \\ -4 & 5 \end{bmatrix} \mod 26

Kβˆ’1=[27βˆ’27βˆ’3645]mod  26=[1251619]K^{-1} = \begin{bmatrix} 27 & -27 \\ -36 & 45 \end{bmatrix} \mod 26 = \begin{bmatrix} 1 & 25 \\ 16 & 19 \end{bmatrix}


Step C: Decrypt by Multiplying Kβˆ’1Γ—Cmod  26K^{-1} \times C \mod 26

P=[1251619]Γ—[78]mod  26P = \begin{bmatrix} 1 & 25 \\ 16 & 19 \end{bmatrix} \times \begin{bmatrix} 7 \\ 8 \end{bmatrix} \mod 26

P1=(1Γ—7)+(25Γ—8)=7+200=207mod  26=207βˆ’7(26)=207βˆ’182=25P_1 = (1 \times 7) + (25 \times 8) = 7 + 200 = 207 \mod 26 = 207 - 7(26) = 207 - 182 = 25

P2=(16Γ—7)+(19Γ—8)=112+152=264mod  26=264βˆ’10(26)=264βˆ’260=4P_2 = (16 \times 7) + (19 \times 8) = 112 + 152 = 264 \mod 26 = 264 - 10(26) = 264 - 260 = 4


Step D: Convert Numbers to Letters

  • 25 = Z
  • 4 = E

Result

Plaintext=ZE\boxed{\text{Plaintext} = \textbf{ZE}}

Asked in 2082Short Question5 Marks
2.
Given the key "HELLOWORLD", encrypt the plaintext "TURINGTEST" using Play fair cipher. [5]
Asked in 2082Long Question10 Marks
3.
Describe the Feistel Cipher structure. Given the key {2B, 7E, 15, 16, 28, AE, D2, A6, AB, F7, 97, 66, 01, 02, 03, 04}, compute the first 4 byte of next key after first iteration, using the following S-Box in AES.
S-Box0123456789ABCDEF0637C777BF26B6FC53001672BFED7AB76\begin{array}{c|cccccccccccccccc} \text{S-Box} & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F \\ \hline 0 & 63 & 7C & 77 & 7B & F2 & 6B & 6F & C5 & 30 & 01 & 67 & 2B & FE & D7 & AB & 76 \end{array}
[10]
Asked in 2080Short Question5 Marks
4.
Show that the set of integers is Ring under addition and multiplication. [5]
Asked in 2079Short Question5 Marks
5.
Which one is more secure, monoalphabetic cipher or poly alphabetic cipher? Justify. Using rail fence cipher encrypt the text 'LEARNING AND TEACHING ARE DIFFERENT' using 3 as rails. [5]
Asked in 2078Long Question10 Marks
6.
Define CIA triad. State the encryption process of double and triple DES. What is the task of S-Box in DES? Discuss with an example. [10]
Asked in 2076Long Question10 Marks
7.
Among monoalphabetic and polyalphabetic cipher, which one is more vulnerable? Justify your statement. Which types of keys are considered weak keys in DES? Explain the round operation in IDEA. [10]