Skip to content

Node.js package for accessing the mac keychain synchronously

License

Notifications You must be signed in to change notification settings

elentok/keychain-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node.js package for accessing the mac keychain synchronously

Resources

License

Stars

Watchers

Forks

Packages

No packages published