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 ?
Asked
Active
Viewed 57 times
0
-
There is not enough information in your question to provide a meaningful answer. You could start by describing what you're using (jdk apis, frameworks, etc.), and post some code? – Fabien Benoit-Koch Sep 07 '16 at 20:11
-
i am using jdk and simple sockets I am using java beans class it's also in plain text ? – Muhammad Awais Sharif Sep 07 '16 at 20:20
1 Answers
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
-
-
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