I'm writing a Client Server application. The communication between Client and Server uses Java RMI. I've set up RMI so that it uses SSLSockets
, so the communication is secure. But now I want my Client to enter a password, the password needs to be send to the Server and stored there in a secure way.
Question 1: Do I need to encrypt this password when I send it, or is the use of
SSLSockets
enough?Question 2: I was thinking about encrypting it using a hashfunction (like
SHA1
) on the Server and then comparing it with the stored value.Question 3: How can I store these passwords in a secure way? I want to store them locally. Should I create a database and store the encrypted passwords? What are the common practices for this?