Diffie Hellman and RSA by hand

Nothing to hand in

The people at your computer should partner with the people at a nearby computer. One computer will be Alice and the other will be Bob. You can send your messages via Slack direct message or sliding pieces of paper across the table or whatever works for you.

To do the computations you need to do, I recommend running python or python3 in interactive mode (just type "python3" at the command line):

$ python3 Python 3.6.9 (default, Dec 8 2021, 21:08:43) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 13**27 % 59 37 >>>

Alternatively, you can use "python3 -c" to run arbitrary code, like this:

python3 -c "print(13**27 % 59)"

Fortunately, python's integer arithmetic supports arbitrary integer sizes, so you don't need to worry about your integers getting too big.

Diffie Hellman

RSA

Observations about this use of RSA