我在python中有TCP / IP套接字客户端/服务器程序。我想保护这些数据包。我想知道你对此的看法。先感谢您。
一个好的方法是使用OpenSSL将数据包包装在SSL中(Secure Socket Layer,它是用于在HTTPS中保护连接的协议)。
Secure Socket Layer
pyOpenSSL存储库有一个example project,可用于构建应用程序。