19 Tut 2 Sol
19 Tut 2 Sol
(1) Find the smallest nonnegative integer x that satisfies the following congruence equa-
tions.
(i) 797 ≡ x mod 11. Ans: x = 5.
(ii) −36893 ≡ x mod 19. Ans: x = 5.
(iiv) 231345678 × 121439870 ≡ x mod 255. Ans: x = 150.
(iv) 524 ≡ x mod 29. Ans: x = 20.
(v) 23159 ≡ x mod 79. Ans: x = 1.
(vi) 8x ≡ 3 mod 47. Ans: x = 18.
(2) It is known that an affine cipher with key (23, 3) is used to encrypt a message. Decrypt
the message if the cipher text is:
Encryption function: f (x) = 23x + 3 mod 26. Decryption function: g(x) = 17x +
1 mod 26.
TOIDY Ans: MFHAT
(3) Using the exponential cipher f (x) = x3 mod 5259 that encipher two letters each time,
encipher the message:
Easy 4003 ≡ 3229 mod 5259, 18243 ≡ 2052 mod 5259.
(6) In the setting of RSA cryptosystem, we set n = 59 × 71 and the public key of Bob is
11, i.e. e = 11.
(i) Suppose Alice sent a message to Bob represented by a number 7. Find the
number that represents the ciphertext. Ans: 711 ≡ 1451 mod 4189.
(ii) Find the multiplicative inverse of 11 mod φ(n). Ans: 3691.
(iii) Suppose B received the ciphertext represented by the number 13. Find the
number that represent the plaintext given 133689 ≡ 2105 mod n.
Ans: 133691 ≡ 133689 · 132 ≡ 3869 mod 4189.