Q:

Can RSA be used to secure client data before sending to server?

So one day i was reading about RSA and over there it was written that we can secure the data using the public key. So as an idea can I secure the data on the client itself before sending it to the server using the public key provided. And decrypting using the private key on the server?

A:

This is what https:// was designed to do. A client/server connection via https is already encrypted (via TLS) using a unique, mutually created key pair. You'll want to configure the most robust cipher that your server supports with failovers to lower-grade (but not too low) ciphers if some of your clients need that support.

