Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I encrypt a user's password before sending it to the server?

I want to authenticate a user by allowing him to create a username and password. Since I only find old posts about it, I'm creating this one.

Should I encrypt the password before sending to the server? If so, how should I do it? If not, should I use some specific configuration in my POST request to the server?

Is there any reliable third party api that I should use?

I know that Google has an androidx API for this things, but it's still in alpha.

like image 894
Igor Grecco Lacourt Avatar asked Oct 24 '25 15:10

Igor Grecco Lacourt


1 Answers

If you use HTTPS protocol to comunicate with the server the data are already encrypted before beeing sent, anyway I suggest you to execute an additional encryption using Cipher.

PS see this question for more How to encrypt String in Java

like image 64
Marco Rocchi Avatar answered Oct 26 '25 06:10

Marco Rocchi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!