Node.js package for accessing the mac keychain synchronously
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE-MIT
README.md
package.json

README.md

Keychain-Sync

Build Status

Access the mac keychain synchronously

Usage

First, add 'keychain-sync' to your package.json dependencies, or run:

npm install keychain-sync

Then use the following code:

keychainSync = require 'keychain-sync'

keychainSync.setPassword('myAccount', 'myService', '12345')

keychainSync.getPassword('myAccount', 'myService')
# returns '12345'

keychainSync.getPassword('myAccount', 'wrongService')
# returns null