as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

EncryptionContext

Represents an encryption context. This class provides functionality to perform encryption operations.

Extends

  • BaseCryptoClass

Methods

encrypt()

encrypt(plaintext): Promise<ArrayBuffer>

Encrypt the provided plaintext data..

Parameters

plaintext

ArrayBuffer

The data to be encrypted.

Returns

Promise<ArrayBuffer>

A promise that resolves to the encrypted data (ciphertext).

Throws

SecurityError If the encryption operation fails.


Last updated: Sep 30, 2025