SimpleHtdigest
v0.0.7
Published
Execute 'htdigest' from Node.js by non-root user.
Downloads
1
Readme
SimpleHtdigest
Execute 'htdigest' from Node.js by non-root user.
Installation
$ npm install SimpleHtdigest
Usage
var Htdigest = require('SimpleHtdigest');
var htdigest = Htdigest();
// user add/mod
var result = htdigest.save('.passwordfile', 'realm', 'username', 'password');
// If a pair 'realm' and 'username' is already exists at '.passwordfile',
// the target entry is going to be updated.
// or....
// user delete
var result = htdigest.delete('.passwordfile', 'realm', 'username');
// or....
// get hash but does not save
var result = htdigest.getHash('realm', 'username', 'password');