Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
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

Constructors

new EncryptionContext()

new EncryptionContext(): EncryptionContext

Returns

EncryptionContext

Methods

encrypt()

encrypt(plaintext: ArrayBuffer): Promise<ArrayBuffer>

Encrypt the provided plaintext data..

Parameters

plaintext

ArrayBuffer

The data to be encrypted.

Throws

  • If the encryption operation fails.

Returns

Promise<ArrayBuffer>

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


Last updated: Jul 22, 2026