HTW Berlin
Fachbereich 4
Internationaler Studiengang
Internationale Medieninformatik (Bachelor)
Aktuelles - Medien: Kryptographie
Winter Term 2010/11
Lab 7: 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?
Copyright 2010
Dr. Hermann Thiel & Prof. Dr. Debora Weber-Wulff - All rights reserved. Questions or comments:
<weberwu@htw-berlin.de>
This material is jointly prepared by Dr. Hermann Thiel and Prof. Dr. Debora Weber-Wulff. Much of the material comes from other sources and is denoted by the copyright notices on the individual pages