2

My iphone application wants to connect to server by giving username and password. How can I send this password securely. Anyone please help. I am a beginner.

3
  • 5
    You tagged your question 'ssl' .. what's wrong with using ssl? Commented May 12, 2010 at 6:29
  • Can you please tell, how to use it. Any sample codes or tutorials ? Commented May 12, 2010 at 6:48
  • simply send your request to an "https" instead of "http" URL, and it will automatically be encrypted. Commented May 12, 2010 at 6:49

2 Answers 2

1

If you are unable to use SSL for some reason but you have control over the server side, you may try a "Challenge-response authentication" 1.

Sign up to request clarification or add additional context in comments.

Comments

0

This depends on the reasons you are submitting a username and password. If you are submitting the username and password to your own service, then simply use Transport Layer Security (TLS), as it will generate an encrypted session and all data sent during the session will be encrypted. If you are trying to login to an online web service, you will probably need to follow whatever authentication protocol that particular web service uses. Many websites use OAuth, for example. If you are connecting to such a service, you should also see if there are any client libraries available for communicating with that service as many popular web services already have code available to communicate and authenticate with them.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.