Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-13-2011, 05:18 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 14
lynngobin is on a distinguished road
Default Storing user ID and password for app access to web data

I'm working on an app that uses NSURLConnection to send an HTML POST method request containing a user name and password assigned to me as a developer. The app then parses XML returned by the server.

Of course, I'd like to securely store the user name/password combination rather than hardcoding it into the app. I understand that the keychain is one way to store sensitive, user-specifed information, but I'm uncertain how an app can be installed with a pre-defined, secure password. I need the password ready to go without user input.

Can anyone point me in the right direction?
lynngobin is offline   Reply With Quote
Old 09-13-2011, 05:38 PM   #2 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 577
Speed is on a distinguished road
Default

Quote:
Originally Posted by lynngobin View Post
I'm working on an app that uses NSURLConnection to send an HTML POST method request containing a user name and password assigned to me as a developer. The app then parses XML returned by the server.

Of course, I'd like to securely store the user name/password combination rather than hardcoding it into the app. I understand that the keychain is one way to store sensitive, user-specifed information, but I'm uncertain how an app can be installed with a pre-defined, secure password. I need the password ready to go without user input.

Can anyone point me in the right direction?
Definitely the keychain. I use it in my application, and it is great.

As for storing password as the application runs, you can hard-code the password in and then update a key in the keychain whenever the application runs.

For utilities that interact with the keychain, I'd recommend SFHFKeychainUtils (I did experience a pesky leak with it, however).
Speed is offline   Reply With Quote
Old 01-24-2012, 04:54 AM   #3 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by Speed View Post
Definitely the keychain. I use it in my application, and it is great.

As for storing password as the application runs, you can hard-code the password in and then update a key in the keychain whenever the application runs.

For utilities that interact with the keychain, I'd recommend SFHFKeychainUtils (I did experience a pesky leak with it, however).


Hi could you help me please finding SFHFKeychainUtils.h &.m for ios 5/simulator 5 version.. as all available on internet are working for older versions.... but not for newer version...
Sunny46 is offline   Reply With Quote
Reply

Bookmarks

Tags
keychain, nsurlconnection, password

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 407
15 members and 392 guests
7twenty7, Eclectic, eski, EvilElf, fiftysixty, HemiMG, iOS.Lover, JackReidy, jarv, sacha1996, teebee74, tim0504, UMAD, VinceYuan, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,905
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0