Socket
Socket
Sign inDemoInstall

cryptopeer-crypto

Package Overview
Dependencies
16
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

lib/Ecdh.js

2

lib/index.js
'use strict';
module.exports = {
'ECDH': require('./ECDH')
'Ecdh': require('./Ecdh')
};
{
"name": "cryptopeer-crypto",
"version": "0.2.0",
"version": "0.2.1",
"description": "Crypto module for CryptoPeer",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,3 +15,3 @@ [![Build Status](https://travis-ci.org/zMotivat0r/cryptopeer-crypto.svg?branch=master)](https://travis-ci.org/zMotivat0r/cryptopeer-crypto)

### ECDH with new keys
### Ecdh with new keys

@@ -23,4 +23,4 @@ ```js

```js
let alice = new crypto.ECDH(),
bob = new crypto.ECDH();
let alice = new crypto.Ecdh(),
bob = new crypto.Ecdh();

@@ -33,7 +33,7 @@ let aliceShared = alice.computeSecret(bob.publicKeyBuffer, 'base64'),

### ECDH from existing `privateKey`
### Ecdh from existing `privateKey`
```js
let alice = new crypto.ECDH(),
mallory = crypto.ECDH.fromPrivateKey(alice.privateKey, 'base64');
let alice = new crypto.Ecdh(),
mallory = crypto.Ecdh.fromPrivateKey(alice.privateKey, 'base64');

@@ -40,0 +40,0 @@ console.log(alice.publicKey === mallory.publicKey);

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