cryptopeer-crypto
Advanced tools
Comparing version 0.2.0 to 0.2.1
'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); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1