0% found this document useful (0 votes)
36 views

Assignment 1

1. The document contains 5 questions and answers related to encrypting text using different ciphers (shift, affine, monoalphabetic, Vigenere, and Playfair) with given keys. 2. For the first question, the original plaintext recovered from the shift cipher was "An Apple a day keeps the doctor away". 3. For the second question, the ciphertext produced from encrypting "Knowledge is power" with the affine cipher using the key (5,8) was "Gvaolcxmc wu faocp".

Uploaded by

Anchal Anchal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Assignment 1

1. The document contains 5 questions and answers related to encrypting text using different ciphers (shift, affine, monoalphabetic, Vigenere, and Playfair) with given keys. 2. For the first question, the original plaintext recovered from the shift cipher was "An Apple a day keeps the doctor away". 3. For the second question, the ciphertext produced from encrypting "Knowledge is power" with the affine cipher using the key (5,8) was "Gvaolcxmc wu faocp".

Uploaded by

Anchal Anchal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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