Hi,
I am writing a Java Chatroom application that will implement
encryption of messages using the RSA algorithm using the BigInteger
class. It uses socket connections to exchange messages.
I have managed to generated the Private and Public keys and
exchanged public keys and modulus between the clients and server.
Please could someone advise me how encrypt a short message, pass the
encrypted message across a socket connection and then decrypt the
message at the receiving end.
I have tried creating a BigInteger[] encrypted message but how do I
send this across a socket connection? Or is there a better way to
encrypt the message and pass it across a socket connection?
Thanks for your help.
Jerry
I am writing a Java Chatroom application that will implement
encryption of messages using the RSA algorithm using the BigInteger
class. It uses socket connections to exchange messages.
I have managed to generated the Private and Public keys and
exchanged public keys and modulus between the clients and server.
Please could someone advise me how encrypt a short message, pass the
encrypted message across a socket connection and then decrypt the
message at the receiving end.
I have tried creating a BigInteger[] encrypted message but how do I
send this across a socket connection? Or is there a better way to
encrypt the message and pass it across a socket connection?
Thanks for your help.
Jerry
Comment