whether the data transmitted by socket needs to be encrypted
whether the data transmitted by socket needs to be encrypted
look at the business scenario. Encryption can be done if the business needs, but data verification must be done.
socket is the socket, which is responsible for the transmission of data. The format of the data and whether the data is encrypted are based on specific protocols.
for example, the http protocol does not need to be encrypted, but the https protocol needs to be encrypted. If you have developed a set of encryption protocols based on TCP/IP, then encrypt and decrypt according to your own protocol rules.