WS 2025 Digital Assignment I-A1
WS 2025 Digital Assignment I-A1
:
Name :
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:
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?
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
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.