Socket
Socket
Sign inDemoInstall

http-signature

Package Overview
Dependencies
15
Maintainers
16
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.3.2

4

CHANGES.md

@@ -7,2 +7,6 @@ # node-http-signature changelog

## 1.3.2
- Allow Buffers to be used for verifyHMAC (#98)
## 1.3.1

@@ -9,0 +13,0 @@

4

lib/verify.js

@@ -47,3 +47,3 @@ // Copyright 2015 Joyent, Inc.

* @param {Object} parsedSignature the object you got from `parse`.
* @param {String} secret HMAC shared secret.
* @param {String} or {Buffer} secret HMAC shared secret.
* @return {Boolean} true if valid, false otherwise.

@@ -55,3 +55,3 @@ * @throws {TypeError} if you pass in bad arguments.

assert.object(parsedSignature, 'parsedHMAC');
assert.string(secret, 'secret');
assert(typeof (secret) === 'string' || Buffer.isBuffer(secret));

@@ -58,0 +58,0 @@ var alg = validateAlgorithm(parsedSignature.algorithm);

{
"name": "http-signature",
"description": "Reference implementation of Joyent's HTTP Signature scheme.",
"version": "1.3.1",
"version": "1.3.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": "Joyent, Inc",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc