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