PDA

View Full Version : [Dashcode] Password storage




Nial
Mar 14, 2009, 07:04 AM
I'm working on a dashboard widget that needs to store a services password. Having checked Apple's Developer documentation, it's suggested that the standard Preference Key system is unencoded and as such probably not the best way to store sensitive data.

What's the safest way to store sensitive data so that it may remain persistent across restarts, etc?



kainjow
Mar 15, 2009, 07:26 AM
I'm assuming that to use the keychain directly you'll need to write a Cocoa plugin that wraps the keychain API so it can be used in JavaScript. Or if there is a command-line tool that does this you could use that too (or write your own).