Public-key cryptography · 07 Try it yourself

Public-key cryptography: try it yourself

Exercises on modular exponentiation, one-wayness and verifying a signature, with solutions.

Exercise 1: the easy direction

Compute 3^4 mod 7 and 5^3 mod 13.

Exercise 2: the hard direction

Find x such that 3^x mod 7 = 6, with x between 1 and 6. How many attempts did you need?

Exercise 3: verify a signature

With the example public key (n = 3233, e = 17), check whether 588 is a valid signature for the message 65 by computing 588^17 mod 3233 with a computer or a suitable calculator.

Exercise 4: the trust problem

Anna finds Bruno’s public key on a website. List three ways she could make sure it really is Bruno’s.

Continue with
08 FAQ

Public-key cryptography: frequently asked questions

Short answers to the most common doubts about public-key cryptography.

↑