Cryptography
Warm-upHumanA toy RSA public key is , where . Encrypt the message : compute .
A toy RSA public key is , where . Encrypt the message : compute .
For the toy key , , and , find the private exponent with and .
With the key , , , a ciphertext arrives. Decrypt it: find . (Hint: you can check your answer by encrypting it.)
Ama and Bolat use Diffie–Hellman with and . Ama's secret is , Bolat's is . Ama sends and Bolat sends . What shared key do they compute?
An attacker knows the public key of an RSA user. Which additional pieces of information would let the attacker compute the private exponent efficiently, with known methods? (Choose all that apply.)
Textbook RSA with and a 2048-bit modulus is used to send a 100-bit number , as . What can an eavesdropper do?
Which Lean statement is a true formalisation of RSA correctness, as proved in the lesson?
Implement pow_mod(b, e, n) by repeated squaring without using Python's three-argument pow: return . It must handle exponents with hundreds of digits instantly.