You are on page 1of 2

Dixitkumar Patel Student ID: 110040563

Dixitkumar Patel Student ID: 110040563

Assignment - 1
Q-1 The following ciphertext was encryption of an English sentence using a shift cipher:
ERETTPIEHECOIITWXLIHSGXSVEAEC.
Find the original sentence.
Ans. Most used alphabets are E and I.
So, E can be A and I can be E, then key will be 4.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
Hence original sentence will be;
Encryption: An Apple a day keeps the doctor away
Q-2 Encrypt the following plaintext using the affine cipher with key (a, b) = (5, 8) and
obtain the ciphertext.
Knowledge is power
Ans. Encryption with affine cipher done with this formula,
y = ax+b mod 26; where a=5 and b=8;
Using this formula encryption table will be.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
I N S X C H M R W B G L Q V A F K P U Z E J O T Y D
Encryption: Gvaolcxmc wu faocp
Q-3 Let the encryption keyword of a monoalphabetic cipher be CODE. Obtain ciphertext
for message sentence:
Knowledge is power
Ans. Key: CODEABFGHIJKLMNPQRSTUVWXYZ
Encryption table will be.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
C 0 D E A B F G H I J K L M N P Q R S T U V W X Y Z
Encryption: Jmnwkaefa hs pnwar
Q-4 Let the encryption keyword of a Vigenere cipher be CODE. Obtain ciphertext for
message sentence:
Knowledge is power
Ans. Key: CODECODECODECODECODECODECO
Encryption: Mbransgkg wv tqkhv

1
Dixitkumar Patel Student ID: 110040563
Dixitkumar Patel Student ID: 110040563

Q-5 Let the encryption key-phrase of a playfair cipher be CODE WORD. Obtain the
encryption key and the ciphertext for message sentence:
Knowledge is power
Ans. Encryption table will be:
C O D E W
R A B F G
H I K L M
N P Q S T
U V X Y Z

Encryption: HQDCSFWBOLTQDCCF

You might also like