I recently built a J2SE chatting application, but I think I should take a consideration about data transmission encryption. But I cannot code it from scratch.
I don’t know if there is a existing encryption application can help me to achieve the goal? The key point is: it should supprt Java application.
Thank you!
You should be using SSL for this. Java has built-in support for SSL via SSLSocketFactory:
From that point, use the socket just as you normally would.