I'm creating an iphone application.
In the application I need to communicate with my database. I've looked around and found out that the best way is iPhone -> webserver -> mysql.
And if I use https, the traffic wont be in plaintext.
But I'm still concerned about the security.
Let's say I've got like, auth.php which will auth the current session with the webserver, and if I then have a game or something and register the result with registerresult.php, the users would still be able to login through the auth.php via website and the register their own result in registerresult.php.
(Im using POST method to post the data)
You see the problem?
I've looked at this: http://www.icodeblog.com/2009/10/29/iphone-coding-tutorial-creating-an-online-leaderboard-for-your-games/2/
But, is that really a good way, or is there better? (send a hardcoded "key" with each statement)
If https wasnt used that key would be in plaintext anyway?