1.0.2 • Published 5 years ago
crypto-ecdh v1.0.2
crypto-ecdh
install
yarn add crypto-ecdhusage
const client = ecdh();
const server = ecdh();
const sharedClient = client.derive(server.public);
const sharedServer = server.derive(client.public);
client.encrypt('this is a test')
.then(cipher => server.decrypt(cipher))
.then(data => tape.equal(data, 'this is a test', 'encrypt/decrypt'))development
install builder/compiler
npm i -g backed-clibuild
backed -b