I have a web page communicating with a server application using sockets. Security wasn't a concern in the past but I've decided it's time to implement some. Right now the page is communicating with the server by sending strings in plain text with commands to execute on the server. What would be the best way to secure this communication so that messages aren't being sent in plain text?
I considered encrypting the messages being sent using a shared key system such as AES, but I don't have much experience working with encryption and the Google results for implementing code such as this were quite intimidating.
The server is written in Qt C++, but is specifically for Windows.