Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf Net TCP绑定安全性_Wcf_Wcf Security - Fatal编程技术网

Wcf Net TCP绑定安全性

Wcf Net TCP绑定安全性,wcf,wcf-security,Wcf,Wcf Security,如果我在客户端编写了此代码,那么我的通信是否不安全,或者默认安全性是否将继续?第二,数据是否以加密方式传输?在服务器端,我们没有为安全做任何事情 NetTcpBinding objNetTcpBinding = new NetTcpBinding(); objNetTcpBinding.Security.Mode = SecurityMode.None; objNetTcpBinding.Security.Transport.ClientCredentialType = TcpClientCre

如果我在客户端编写了此代码,那么我的通信是否不安全,或者默认安全性是否将继续?第二,数据是否以加密方式传输?在服务器端,我们没有为安全做任何事情

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;

默认情况下,NetTcp绑定在传输级别受到保护。如果在客户端禁用了安全性,则必须在服务器上禁用安全性,否则将发生异常。在这种情况下,传输将不受保护。

在这种情况下,确定如何在网络上遍历数据?它是以字节的形式并且容易被破解,还是仍然是加密的形式,普通用户无法破解?消息默认为二进制编码,但不加密。我相信,在发送邮件之前,您需要为邮件实施加密系统。