2.0.2 • Published 3 years ago
react-native-dh-keys v2.0.2
react-native-dh-keys
Getting started
$ npm install react-native-dh-keys --save
Mostly automatic installation
$ react-native link react-native-dh-keys
Usage
import DHKeys from 'react-native-dh-keys';
//Create Client Public and Private keys using P and G values
DHKeys.getEncodedPublicKeyFromPg(P, G,).then(({ clientPrivateKey, clientPublicKey }) => {
console.log(`Private Key: ${clientPrivateKey} Public Key: ${clientPublicKey}`)
});
//In order to generate Shared key
// third param p is only for ios
DHKeys.getSharedSecretHex(serverPublicKey, clientPrivateKey, P).then((sharedKey) => {
console.log(`Shared Key: ${sharedKey}`);
});
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.13
3 years ago
1.1.12
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.0
3 years ago
1.0.1
3 years ago