Secure connection

I am working on a school project with a server application that contains centralized data and client applications that store cached data that will be synchronized with sockets. Everything is written in Java.

What is good practice? How can I stop people from listening to my traffic? Or do not let people understand what is said?

+6
source share
2 answers

SSL is standard practice. See the javax.net.ssl Package and the JSSE Reference Guide . But at this stage, this may go beyond your project or your abilities. Consult your instructor.

+5
source

You simply use SSLSocketFactory instead of SocketFactory for your client server application. Thus, the connection between them will be completely encrypted. You can protect your client server application in less than one day if you know basic Java. Here is the tutorial .

+11
source

Source: https://habr.com/ru/post/897509/


All Articles