@aws-crypto/client-browser
Advanced tools
Comparing version 0.1.0-preview.4 to 0.1.0-preview.5
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.1.0-preview.5](/compare/@aws-crypto/client-browser@0.1.0-preview.4...@aws-crypto/client-browser@0.1.0-preview.5) (2019-09-20) | ||
### Bug Fixes | ||
* Add cacheing CMM examples (#187) b74716b, closes #187 #23 | ||
# [0.1.0-preview.4](/compare/@aws-crypto/client-browser@0.1.0-preview.3...@aws-crypto/client-browser@0.1.0-preview.4) (2019-08-08) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@aws-crypto/client-browser", | ||
"version": "0.1.0-preview.4", | ||
"version": "0.1.0-preview.5", | ||
"scripts": { | ||
@@ -15,9 +15,9 @@ "build": "tsc -b tsconfig.json", | ||
"dependencies": { | ||
"@aws-crypto/caching-materials-manager-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/decrypt-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/encrypt-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/kms-keyring-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/material-management-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/raw-aes-keyring-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/raw-rsa-keyring-browser": "^0.1.0-preview.3", | ||
"@aws-crypto/caching-materials-manager-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/decrypt-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/encrypt-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/kms-keyring-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/material-management-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/raw-aes-keyring-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/raw-rsa-keyring-browser": "^0.1.0-preview.4", | ||
"@aws-crypto/web-crypto-backend": "^0.1.0-preview.3", | ||
@@ -46,3 +46,3 @@ "tslib": "^1.9.3" | ||
}, | ||
"gitHead": "698180f30c85ef77a5739ebadd676d4b41ad441f" | ||
"gitHead": "b3e278777e164258f0f40f5ec5d260f1c0d21a9b" | ||
} |
@@ -69,9 +69,9 @@ # AWS Encryption SDK for JavaScript client for the Browser | ||
/* Encrypt the string using the keyring and the encryption context | ||
* the Encryption SDK returns an "encrypted message" that includes the ciphertext, | ||
* the Encryption SDK returns an "encrypted message" (`result`) that includes the ciphertext, | ||
* the encryption context, and the encrypted data keys. | ||
*/ | ||
const { ciphertext } = await encrypt(keyring, plainText, { encryptionContext: context }) | ||
const { result } = await encrypt(keyring, plainText, { encryptionContext: context }) | ||
/* Decrypt the ciphertext using the same keyring */ | ||
const { plaintext, messageHeader } = await decrypt(keyring, ciphertext) | ||
/* Decrypt the result using the same keyring */ | ||
const { plaintext, messageHeader } = await decrypt(keyring, result) | ||
@@ -78,0 +78,0 @@ /* Get the encryption context */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1400390