0

我有一个适用于 Android 和 iOS 的应用程序。要加密发送到 PHP 脚本的数据,从应用程序方面来说,是否只是将“S”添加到“HTTP://.....”,然后在发送时所有内容都被加密?

试过谷歌,但找不到任何相关的东西。谢谢。

4

1 回答 1

3

不,你不能只添加一个 s。

https 中的“s”表示连接受 TLS(传输层安全)保护。这是通过使用证书和公钥加密的身份验证来实现的。

看:

http://computer.howstuffworks.com/encryption.htm

http://en.wikipedia.org/wiki/Public-key_cryptography

对于 IOS 特定的实现,请参见

https://developer.apple.com/library/ios/#documentation/Security/Conceptual/keychainServConcepts/02concepts/concepts.html#//apple_ref/doc/uid/TP30000897-CH204-TP9

于 2012-05-16T15:34:54.090 回答