0% found this document useful (0 votes)
12 views2 pages

WS 2025 Digital Assignment I-A1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

WS 2025 Digital Assignment I-A1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Reg. No.

:
Name :

Digital Assignment I – Jan 2025


Programme : B.Tech (ECM) Semester : WS 2024-25
Course : Code : BECE411L
Cryptography and Network Security
Class Nbr : CH2024250501514
Faculty : Dr. Jayavignesh T Slot : A1
Time : Digital Assignment 1 Max. Marks : 10

DEAD LINE: Feb 4, 2025 (Tuesday)

1. Encrypt the message “Join forces with allies midnight” using one of the following
ciphers. Ignore the space between words. Decrypt the message to get the plaintext:

a. Vigenere cipher with key as your Last Name (ignore spaces)


b. Autokey cipher with key as your Last digit of your register number
c. Playfair cipher with the key as your Last Name (ignore spaces)

2. a) Use a brute-force attack to decipher the following message enciphered by Alice


using an additive cipher. Suppose that Alice always uses a key that is close to her
birthday,which is on the 13th of the month:

NCJAEZRCLASJLYODEPRLYZRCLASJLCPEHZDTOPDZQLNZTY

b) John is reading a mystery book involving cryptography. In one part of the book,
the author gives a ciphertext “CIW” and two paragraphs later the author tells the
reader that this is a shift cipher and the plaintext is “yes”. In the next chapter, the
hero found a tablet in a cave with “XVIEWVWI” engraved on it. John immediately
found the actual meaning of the ciphertext. What type of attack did John launch
here? What is the plaintext?

3. Use the extended Euclidean algorithm to find the following


a) find gcd of pairs 400 and 60 and the value of s and t.
b) find the inverse of (x4 + x3 + 1) in GF(25) using the modulus (x5 + x2 + 1).

4. A bakery sells two types of cupcakes. The first type comes in boxes of 7, and the
second in boxes of 9. A customer notices that when they count cupcakes from both
box types together, there are always 2 cupcakes left over when grouped in sets of 7,
and 3 cupcakes left over when grouped in sets of 9. How many cupcakes are there in
total, assuming it's less than the least common multiple of 7 and 9?
5. a) Find the result of X−1 mod 101 using Fermat’s little theorem, where X = <Your
first two digits of your register number eg : 22BLC1101 , X=11

b) Find the results of 44−1 mod 667, using Euler’s theorem,

6. You have a clock that chimes every 8 hours, starting at midnight. Someone gives you
a repetitive sequence that involves turning on a light 21 24 times in succession. You
want to know the hour on the clock when the light turns on for the 21 24th time. Since
the clock repeats every 8 hours, you can solve this problem using modular
arithmetic, specifically the square-and-multiply method.

You might also like