authhmac

0.0.2 • Public • Published

AuthHMAC -- HMAC signing for Node HTTP

Install

  npm install authhmac

Or from source:

  git clone git://github.com/cloudify/node-authhmac.git
  cd node-authhmac
  npm link

Super simple to use

AuthHmac provides HMAC signing for Node HTTP requests, it has been inspired by the Ruby AuthHMAC gem: https://github.com/seangeo/auth-hmac

var authhmac = require('authhmac');

var key = 'my hmac key';
var secret = 'my hmac secret'; 

http_options = {
  host: 'test.com',
  port: 80,
  path: '/api',
  method: 'POST',
  headers: {
    'Content-Type': 'multipart/form-data'
  }
};

authhmac.sign(http_options, key, secret);
    
var req = http.request(http_options, function(res) {
  // ...
});

Readme

Keywords

none

Package Sidebar

Install

npm i authhmac

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • cloudify