DES Key - Client Side
Hi,
I would like to be able to generate a DES key, store it in a file, and use the key to encrypt my message and send it to my friend抯 server. I抳e started the program, but am not sure where else to go with it. It抯 on the next post. Any help is greatly appreciated.
Thanks,
James
import java.io.*;
import java.net.*;
import java.security.*;
import javax.crypto.*;
publicclass Cipher
{
publicstaticvoid main(String[] args)throws Exception
{
String message ="Hi John, here is the first message.";
String host ="xxx.xxx.xxx";
int port = 7999;
Socket s =new Socket(host, port);
//Help here
// DES key.
//Storage of DES key
// Encrypt the message using the key and send it to the server
}
}

