I know its a duplicate question. But i don't know how to implement this in YII.
I need to encrypt the password before submitting the form values to controller. When we submitting the form the password field also travel as plain text only.
So its is easy to intercept and get the password value using tools like wireshark and Burp suite(in the bellow image i captured the entered password as plain text).

So, I searched about this and i found a solution for codeigniter. As of the solution by JLeft to use ssl. But, I don't know how to implement this in YII. Please suggest me any solution in YII or any alternative.