just like the title said, how could I encrypt password before I send it to server via ajax, and then decrypt it in php (since JS run in client side, and php run in server-side, I don't know how to encrypt and decrypt using a same scenario/algorithm)? Currently I'm using laravel as for the framework. Some people said that I should use https, but I want to avoid using this.
I appreciate any link or tutorial.