as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
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

  • SecurityError If the encryption operation fails.

Returns

Promise<ArrayBuffer> Promise<ArrayBuffer> A promise that resolves to the encrypted data (ciphertext).
最后修改于 2026年8月25日