如何保护iOS应用和服务器之间的流量? [英] How to secure traffic between iOS-app and server?

查看:161
本文介绍了如何保护iOS应用和服务器之间的流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个从Web服务器获取JSON编码数据的应用程序。现在,任何人都可以访问获取数据的服务器脚本,并可能访问敏感数据。

I am building an app which gets JSON-encoded data from a web server. Right now, anyone can access the server-script that gets the data, and potentially access sensitive data.

那么,确保应用程序是什么的最佳方法是什么获取数据,并保护服务器和应用程序之间的流量?
服务器脚本是PHP。

So, what is the best way to ensure that the app is what's getting the data, and secure the traffic between the server and app? The server-script is PHP.

谢谢。

推荐答案

您应该使用 随机数

You should use nonces

这是一个关于如何在C中生成MD5哈希的精彩教程:

Here's a great tutorial on how to generate an MD5 hash in C:

http://www.saobart.com/md5-has-in-objective-c/

这篇关于如何保护iOS应用和服务器之间的流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆