There is encrypted data in the database (asymmetric FYI). It is to be viewed as decrypted on the website. The data can be sent to the client as encrypted to be decrypted on the client's computer, or the data can be decrypted on the server and then sent to the client in plain text.
Now it occurs to me that I don't want anything to be sent from the server to the client as unencrypted. The data needs to be transmitted as encrypted and decrypted on the client side.
If the server is sending encrypted data, a key needs to be sent with it. How does sending a key with the encrypted data not completely defeat the purpose of encrypting it in the first place?