The CEO of the organization XYZ decides to hold a vote to decide whether employees should be allowed to work from home (WFH) either one, two or three days a week.
All 4 employees of XYZ (excluding the CEO), need to vote either “WFH one”, “WFH two” or “WFH three”. To ensure privacy, the CEO asks employees to send their votes by emailing them to the CEO. Furthermore, the CEO tells them to encrypt their votes using her RSA public key e. The messages are encoded as:
- WFH one 7→ 100,
- WFH two 7→ 200.
- WFH three 7→ 300.
The CEO receives the sequence of ciphertexts:
c1, c2, c3, c4
where ci is the ciphertext from employee i.
For completeness, assume the employees are in the order:
Alice, Bob, Charlie, Dave
So, e.g., Bob’s ciphertext is c2.
Was easy:
Assume you, the eavesdropper, gets the sequence:
208149, 249575, 272202, 249575
After observing this, how many possible sequences of votes are there and why?
Answer: No. of possible sequences can be calculated as follows:
3 (options for Alice) × 1 (same option for Bob and Dave) × 3 (options for Charlie) = 3 × 1 × 3 = 9
Is bit tricky:
Suppose the CEO’s RSA public key is (N, e) = (311119, 11). What is Charlie’s vote? How did you come to this conclusion? Your answer should not involve any decryption.
I tried the good old $c ≡ m^e (mod N)$ logic, but it didn't work as expected :(