6.7 RUDIMENTARY ECDH EXCHANGE

EXERCISE 6.7: RUDIMENTARY ECDH EXCHANGE

Use the ECDHExchange class to create shared keys between two parties. You will need to have two instances of the program running. Each program should write their public key bytes to disk for the other program to load. When they’re finished, have them print out the bytes of the shared keys so that you can verify that they both come up with the same key.