edge-keymgr
v1.0.0
Published
Simple API for accessing the Windows Credential Manager.
Downloads
3
Maintainers
Readme
edge-keymgr
Simple API for accessing the Windows Credential Manager.
This project uses edge in order to call a .NET assembly (Windows Credentials Manager Api) from node.
The name comes from the dll name of the Windows Credential Manager => Run: control keymgr.dll
.
Install
npm install edge-keymgr
Example
var keymgr = require('edge-keymgr');
var target = 'about:blank';
var username = 'foobar';
var password = 'password123';
keymgr.getCredentialSync(target);
// => null
keymgr.addCredentialSync({
target: target,
username: username,
password: password
});
// => true
keymgr.getCredentialSync(target);
// => {"target":"about:blank","username":"foorbar","password":"password123"}
keymgr.removeCredentialSync(target);
// => true
keymgr.getCredentialSync(target);
// => null