I am working on designing and building a web service to provide data for an iOS app (also of my design). The web service includes a MySQL database that stores valuable educational data. I have decided to make a REST API written in PHP and using JSON for sending messages to my app. My reasoning for this is REST/JSON will be easy to implement in both PHP and Objective-C without any additional frameworks. My only issue is security. I haven't written a web service before, so I have no idea to secure communication between my web service and my app. This is where I need advice. I need a way to secure communication between an iOS device and my PHP web service so I can send passwords and data securely. Does anyone have advice on a simple and effective security measure for communication? I'm familiar with the concepts of public/private keys and cryptography, but I don't know any standards for implementing security measures. Thank you for your advice.
Asked
Modified
11 years, 11 months ago
Viewed
233 times
Part
of PHP and Mobile Development Collectives
1 Answer
HTTPS takes care of transport security for you, just as it does for regular web pages. No need to reinvent the wheel.
Obviously, you still need security at the application layer to prevent folks from hammering your servers with millions of spam requests and what not.
2 Comments
user2105505
I haven't used HTTPS before. What additional steps need to be taken to implement it? A resource would be very helpful.
Brad
@user2105505 How you implement HTTPS depends on your web server. Generally, it's about as simple as buying a certificate and installing it in your server configuration.