Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node.js package for accessing the mac keychain synchronously
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.