I've developed Vue components for both login and registration functionalities. Now, I'm faced with the question of how to securely send passwords to the server. Should I encrypt the password using bcrypt on the client side before sending it to Laravel? Or should I simply transmit the plain password to Laravel and then use bcrypt($request->get('password'))? Which approach would be more secure?
If encrypting the password in the Vue component is the way to go, which package or function should I utilize to ensure that the encryption process aligns with that of Laravel/PHP?