Socket
Socket
Sign inDemoInstall

http_ece

Package Overview
Dependencies
27
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

shim.js

10

ece.js

@@ -5,2 +5,3 @@ 'use strict';

var base64 = require('urlsafe-base64');
require('./shim');

@@ -59,3 +60,4 @@ var savedKeys = {};

var result = Buffer.concat([
new Buffer('Content-Encoding: ' + base + '\0', 'ascii'),
new Buffer('Content-Encoding: ' + base, 'ascii'),
new Buffer('\0'),
context

@@ -270,2 +272,5 @@ ]);

function encrypt(buffer, params) {
if (!Buffer.isBuffer(buffer)) {
throw new Error('buffer argument must be a Buffer');
}
var key = deriveKeyAndNonce(params, MODE_ENCRYPT);

@@ -307,3 +312,4 @@ var rs = determineRecordSize(params);

if (dhLabel) {
keyLabels[id] = new Buffer(dhLabel + '\0', 'ascii');
keyLabels[id] = Buffer.concat([new Buffer(dhLabel, 'ascii'),
new Buffer('\0')]);
}

@@ -310,0 +316,0 @@ }

19

package.json
{
"name": "http_ece",
"version": "0.5.0",
"version": "0.5.1",
"description": "Encrypted Content-Encoding for HTTP",

@@ -8,4 +8,4 @@ "homepage": "https://github.com/martinthomson/encrypted-content-encoding",

"author": {
"name" : "Martin Thomson",
"email" : "martin.thomson@gmail.com"
"name": "Martin Thomson",
"email": "martin.thomson@gmail.com"
},

@@ -18,7 +18,16 @@ "repository": {

"main": "./ece.js",
"scripts": { "test": "node ./test.js" },
"engines" : { "node" : ">=4.0.0" },
"scripts": {
"test": "node ./test.js"
},
"engines": {
"node": ">=0.10.0"
},
"dependencies": {
"browserify-aes": "^1.0.6",
"buffer-compare-shim": "^1.0.0",
"buffer-io-shim": "^1.0.0",
"create-ecdh": "~4.0.0",
"semver": "~5.1.0",
"urlsafe-base64": "~1.0.0"
}
}
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