File tree 1 file changed +8
-2
lines changed
modules/example-browser/src
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 13
13
* limitations under the License.
14
14
*/
15
15
16
- /* This is a simple example of using a raw AES keyring
17
- * to encrypt and decrypt using the AWS Encryption SDK for Javascript
16
+ /* This is a simple example of configuring a fallback
17
+ * for the AWS Encryption SDK for Javascript
18
18
* in a browser.
19
19
*/
20
20
@@ -31,6 +31,12 @@ import { toBase64 } from '@aws-sdk/util-base64-browser'
31
31
32
32
// @ts -ignore
33
33
import { subtle } from 'msrcrypto'
34
+ /* In this example we use the JavaScript implementation
35
+ * of WebCrypto from MSRCrypto
36
+ * and configure it as a fallback for the AWS Encryption SDK.
37
+ * The implementation will only be used if it is needed.
38
+ * The AWS Encryption SDK will _always_ prefer the native browser implementation.
39
+ */
34
40
configureFallback ( subtle )
35
41
36
42
/* This is done to facilitate testing. */
You can’t perform that action at this time.
0 commit comments