简体   繁体   English

Wcf Service和Xamarin PCL:数据安全

[英]Wcf Service and Xamarin PCL: data security

I write Wcf Service and the client on Xamarin.PCL (Android, iOS). 我在Xamarin.PCL(Android,iOS)上编写Wcf Service和客户端。 How to ensure the highest security of data transmission between the client and Wcf Service? 如何确保客户端与Wcf服务之间的数据传输的最高安全性? It is necessary to encrypt and sign the packets sended to Wcf Service and back. 必须对发送到Wcf服务并返回的数据包进行加密和签名。 From the Wcf also requires authentication for User / Password. 从Wcf还要求对用户/密码进行身份验证。 How I can do that? 我该怎么做?

First of all, there is no such thing as "highest" security. 首先,没有“最高”的安全性。 We all read about numerous successful attacks on most secure systems. 我们都阅读了有关大多数安全系统的众多成功攻击的信息。 It's all matter of how much efforts you want to invest in security. 您要在安全方面投入多少精力完全取决于您。 The only really highest security would be reached if you will not transmit data at all :-) 如果您根本不传输数据,则只能达到真正最高的安全性:-)

Having said that, you probably want some reasonable security level of data transmission. 话虽如此,您可能想要某种合理的数据传输安全级别。 For this you probably should rely on some well-known solutions - SSL, for example. 为此,您可能应该依靠一些众所周知的解决方案-例如SSL。 IMHO, ensuring that your application uses https protocol with valid certificate should be sufficient for most needs. 恕我直言,确保您的应用程序使用带有有效证书的https协议应足以满足大多数需求。

For Xamarin, I'd recommend to take a look on ModernHttpClient library. 对于Xamarin,建议您看一下ModernHttpClient库。 It's fast and have built-in certificate checks. 它速度快,并且具有内置的证书检查功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM