Skip to content

Commit

Permalink
updated package.json, minifed version, README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBielak committed Dec 20, 2020
1 parent ab7c30e commit 2e67c38
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ crypt.getECKeyPair(curve, type, usages, isExtractable).then(keyPair => {
console.log(keyPair.publicKey)
})

/**
* Method that retrieves public key from private key
* @param {CryptoKey} privateKey default: "undefined"
* @param {Object} options default: depends on algorithm below
* -- ECDH: { name: 'ECDH', usages: ['deriveKey', 'deriveBits'], isExtractable: true }
* -- ECDSA: { name: 'ECDSA', usages: ['sign', 'verify'], isExtractable: true }
* -- RSA-OAEP: { name: 'RSA-OAEP', usages: ['encrypt', 'decrypt', 'wrapKey', 'unwrapKey'], isExtractable: true }
* -- RSA-PSS: { name: 'RSA-PSS', usages: ['sign', 'verify'], isExtractable: true }
*/
crypt.getPublicKey(privateKey, options).then(publicKey => {
console.log(publicKey)
})

/**
* Method that encrypts asymmetric private key using passphrase to enable storage in unsecure environment
* @param {CryptoKey} privateKey default: "undefined"
Expand Down
2 changes: 1 addition & 1 deletion dist/OpenCrypto.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencrypto",
"version": "1.5.2",
"version": "1.5.3",
"description": "OpenCrypto is a lightweight JavaScript library built on top of WebCryptography API",
"main": "src/OpenCrypto.js",
"files": [
Expand Down

0 comments on commit 2e67c38

Please sign in to comment.