I have an websocket connection without SSL certificate (just plain WS, not WSS).
Every message is transferred as JSON (text).
What might be best way to secure communication? Which encryption algorithm should I use?
- Most important is to secure integrity of messages, but hiding sent content would be also benefit
I was thinking that user might have it's secret like password It cannot be transferred through wire, as it would be visible on network, but instead it might be private key for connection.