0.0.2 • Published 12 years ago

authhmac v0.0.2

Weekly downloads
8
License
-
Repository
github
Last release
12 years ago

build status

AuthHMAC -- HMAC signing for Node HTTP

Install

Or from source:

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) {
  // ...
});
0.0.2

12 years ago

0.0.1

13 years ago