Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send password safely using an ajax request

just to know, is it possible to send password through an Ajax request safely?

I've a login box that calls an ajax request to try the login/pass and retrieve a JSON Object with errors (if any).

Should I use a form redirection instead?

[EDIT] Store the encrypted password in the database isn't the solution because the login and password send by ajax are the login / password to access the database itself (internal application).

like image 663
Arnaud F. Avatar asked Nov 27 '22 15:11

Arnaud F.


1 Answers

The only way to send something that can not be intercepted by a third party is by using HTTPS instead of regular HTTP. That way everything sent between the server and the client is strongly encrypted.

like image 101
gustavlarson Avatar answered Dec 06 '22 17:12

gustavlarson