[Dashcode] Password storage

Discussion in 'Mac Programming' started by Nial, Mar 14, 2009.

  1. Nial macrumors newbie

    Dec 11, 2007
    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?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    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).

Share This Page