Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preferences and security




On Jun 15, 2005, at 6:51 PM, Benjamin Swanson wrote:
i've read throught the widget documentation on Apple's dev site and searched through the net a little, and I can't find anywhere that tells *how* or *where* these preferences are stored. Are they secure? are they just some text file somewhere?

They are saved as plain text, so there is no security. widget.preferenceForKey() and widget.setPreferenceForKey() utilize the same defaults system applications use—meaning that the prefs are saved in ~/Library/Preferences/, as XML files (use the Property List Editor application in /Developer/Applications/Utilities/ to read these). It's good to know that for debugging purposes, but you shouldn't rely on that path in any way within your widget, in case something were to change in the preferences system somewhere down the line. Stick to the APIs and you'll be in good shape.


If I am developing a widget, should I trust that those methods store users' passwords in a secure place? Or should I look into some other method of storing them (say using Applescript to access the keychain...)

If you're saving a password and therefore concerned about security, I would recommend that you write a widget plug-in that works with Keychain to store and retrieve passwords. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden


This email sent to email@hidden
References: 
 >preferences and security (From: "Benjamin Swanson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.