1
如果我在客户端写了这段代码,那么我的通信是不安全的还是默认的安全会继续?其次,数据是否以加密格式传输?在服务器端,我们没有为安全做任何事情。网络TCP绑定安全
NetTcpBinding objNetTcpBinding = new NetTcpBinding();
objNetTcpBinding.Security.Mode = SecurityMode.None;
objNetTcpBinding.Security.Transport.ClientCredentialType = TcpClientCredentialType.None;
objNetTcpBinding.Security.Transport.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
objNetTcpBinding.Security.Message.ClientCredentialType = MessageCredentialType.None;
好的在这种情况下数据如何在网络上穿越?它会以字节的形式出现,并且容易被破解或者仍然会以加密的形式出现,而且不会被普通用户破解? – Deepesh
默认情况下,该消息将被二进制编码,但未加密。我相信在发送消息之前您需要实现一个加密系统。 –