Socket
Socket
Sign inDemoInstall

create-ecdh

Package Overview
Dependencies
6
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

.npmignore

10

browser.js

@@ -56,5 +56,3 @@ var elliptic = require('elliptic');

}
other = new BN(other);
other = other.toString(16);
var otherPub = this.curve.keyPair(other, 'hex').getPublic();
var otherPub = this.curve.keyFromPublic(other).getPublic();
var out = otherPub.mul(this.keys.getPrivate()).getX();

@@ -85,5 +83,3 @@ return formatReturnValue(out, enc, this.curveType.byteLength);

}
var pkey = new BN(pub);
pkey = pkey.toArray();
this.keys._importPublicHex(pkey);
this.keys._importPublic(pub);
return this;

@@ -118,2 +114,2 @@ };

}
}
}
{
"name": "create-ecdh",
"version": "2.0.0",
"version": "2.0.1",
"description": "createECDH but browserifiable",

@@ -26,4 +26,4 @@ "main": "index.js",

"dependencies": {
"bn.js": "^1.0.0",
"elliptic": "^1.0.0"
"bn.js": "^2.0.0",
"elliptic": "^3.0.0"
},

@@ -30,0 +30,0 @@ "devDependencies": {

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