title: iOS / Xcode / Objective C / PHP / Rest - iPhone authenticate with PHP scripts
body: <p>Im slowly learning about developing an iPhone app for my website ... I have read alot of tutorials and also quite a bit on the apple developer section.</p>
  
  <p>When i started, i asked a question 'what would be the best way to interact with my web app' and i got the answer of RESTful services, so i installed restful on my php app, thats all working good and im happy with that.</p>
  
  <p>My web app is a membership system and i want people to authenticate with the current web app on their iphone, if they have an account, great, let them in, if they dont have one, then display the error msg.</p>
  
  <p>I am getting a little confused though and im wondering if someone could help me.</p>
  
  <p>I dont want anyone to be able to view responses from the restful service, so i take it i implement keys, now, does each user on the system require their own key for their iphone app to access the rest api and if so, how do i run authentication if they need a key first?</p>
  
  <p>or, does the app only require one key to access the api and then everything else is done through the user authentication ... if that is so, one key would surely be not that hard to crack and is it possible for people to disassemble the app to reveal the api key to access the api?</p>
  
  <p>Any thoughts on this would be greatly appreciated ... or even samples of how people deal with authentication and rest services in php and ios.</p>
  
  <p>Thanks so much!</p>