Help! password storage and usage
Help! password storage and usage
- Subject: Help! password storage and usage
- From: David Feldman <email@hidden>
- Date: Wed, 07 Aug 2002 09:48:21 -0400
I'm stumped. My app needs to allow users to log onto remote AppleShare
servers, including those for which the username is not their local username.
Currently, it simply places a system() call to mount_afp. It looks as though
this could also be done with NSTask (is that better?). The password is
omitted from the call, so if the user has stored one in his Keychain it
retrieves it there. This works fine except: (1) the user can't use my app to
log onto a server for which he has not previously stored a password in his
Keychain, and (2) the app needs to run in an automated mode sometimes, and
won't be able to do that if the user has not previously given permission to
unlock the Keychain for a particular server.
So I guess what I'd like to do is provide a password field and use it to
store the passwords in the user's data file. This leaves me with two
problems, and I can't figure out how to solve them:
1. How do I store and retrieve passwords in a secure manner? The data file
is a simple XML property list.
2. How do I pass them to mount_afp (or whatever I'm using) in a secure
manner?
Ideally, I think I'd like to leave this as a pure Cocoa app, partially
because I'm unfamiliar with the Carbon environment, but also isn't Cocoa a
better (and more forward-thinking) way to go?
If anyone can help me out, I would be extremely grateful. My users are
getting restless.
Thanks,
--Dave
----------------------------------------------------------------------
David A. Feldman
User Interface Designer
email@hidden
http://designtheworld.com
----------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.