HTW Berlin
Fachbereich 4
Internationaler Studiengang
Internationale Medieninformatik (Bachelor)
Aktuelle Themen: Cryptography
Winter Term 2016/17
Lab 12: Diffie-Hellman Key Exchange
Use the discrete logarithm and the Diffie-Hellman Key Exchange protocol to implement a simple simulation. Create a class Alice and a class Bob (could there be a super class here, perhaps?) that choose a random number, compute the one-way function, and set up a connection (remember this? Listening on a socket!) with some other instance of the super class. Over this connection the instance exchanges a key with a partner and then calculates the common key.
Can you now create a class Eve that can conduct a man-in-the-middle attack on Alice and Bob? What did you have to do?
The report is due the evening before the next lecture at 22.00!
This material is jointly prepared by Dr. Hermann Thiel and Prof. Dr. Debora Weber-Wulff. Some of the material may come from other sources and is denoted by the copyright notices on the individual pages.