Give advice how to encrypt TCP in my case?

We have a master server and multiple gateways. Master costs, and the floodgates of customers.

I decided not to invent their own Protocol and took the json module-socket, which is able to transmit JSON over tcp.

The problem is that customers need data security(data is not particularly valuable, but can not allow that someone could invade and send its command to the gateway).

How to encrypt data and why?
July 9th 19 at 13:21
3 answers
July 9th 19 at 13:23
July 9th 19 at 13:25
July 9th 19 at 13:27
Throw this perversion. Websocket to help you. And do you really want try to play with nginx or stunnel

Find more questions by tags JavaScriptJSONNetwork administrationNode.js