I am very interested in php and login forms. However, I am still struggling what is safe to do and what not.
When a user logs in, I need to send the username and password via POST to a php.
At the moment I am hashing the password on the server with php function. The hashed password is stored in the database aswell.
I read you can hash it already with JS on client side? But what happens when js is not activated? I can't be sure that it is 100% correctly hashed.
Is it safe to send a plain password via post but with HTTPS?
Thanks for your input. I am happy to learn some new techniques to make it even safer.