0

I want to build a chat Server and client using sockets. For this first i want to be user login. I have created a java-bean class and i want to know How much it is secure to send this java-bean containing username ,email and password to server ?

1 Answers1

1

Unless you use an SSLSocket, its not secure at all. Also it is really not clear what you mean by sending a java bean (Spring, EJB...).

aebblcraebbl
  • 151
  • 7
  • SSLSocket is more secure or Encryption is more secure ? – Muhammad Awais Sharif Sep 08 '16 at 09:19
  • That can't be answered generally. But the simpler solution would be using SSLSockets (which requires you to create a certificate!). That way, there's no need to encrypt/decrypt the content you send over the network "manually". – aebblcraebbl Sep 08 '16 at 17:03