Write in Java UDP programs allowing two partiesto establish a secure communication channel. For simplicity, let uscall the programs “Host” and “Client”, which are executed by Aliceand Bob, respectively. Alice and Bob share a common password PW,which contains 6 numeric characters, and the parameters (p, g) forDiffie-Hellman key exchange. They want to establish a securecommunication channel that can provide data confidentiality andintegrity. They aim to achieve this goal via the following steps:(1) use the shared information to establish a shared session key;(2) use the shared session key to secure the communication.
Step 1 is done via the following key exchangeprotocol:
1: A
OR
OR