CS 231: Computer Security

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 by 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). Recall that 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