Menu

[Solved] For client and server communication By using Diffe and Helman algorithm(DH) generate a secret session key(k)

For client and server communication By using Diffe and Helman algorithm(DH) generate a secret session key(k) from both sides (from client and server separately) by using Java .and also by accepting some message from client by using the generated secret session key (K) encrypt the message from client-side and send to server and server uses the generated secret session key(k) of his own and decrypt the received encrypted message in java. thanks in advance.

Expert Answer


//serverside.java

import java.net.*;

import java.io.*;

 

public class serverside {

public static void main(String[] args) throws IOException

{

try {

int portnumber = 8088;

 

// set Key

OR


Leave a Reply

Your email address will not be published. Required fields are marked *