Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBielak committed Dec 10, 2019
1 parent 1dcfb51 commit ee41bd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ crypt.decryptPrivateKey(encryptedPrivateKey, passphrase, options).then(function

// ECDH Key Agreement
/*
* publicKey CryptoKey | default: undefined
* privateKey CryptoKey | default: undefined
* publicKey CryptoKey | default: undefined
* options: { bitLength: 256, hkdfHash: 'SHA-512', hkdfSalt: "new UInt8Array()", hkdfInfo: "new UInt8Array()", keyCipher: 'AES-GCM', keyLength: 256, keyUsages: ['encrypt', 'decrypt'], isExtractable: true }
*/
crypt.keyAgreement(privateKey, publicKey).then(function (symmetricKey) {
console.log(symmetricKey)
})

// Encrypt shared key
/*
Expand Down

0 comments on commit ee41bd4

Please sign in to comment.