Extends
BaseCryptoClass
Constructors
new EncryptionContext()
new EncryptionContext(): EncryptionContext
Returns
EncryptionContextMethods
encrypt()
encrypt(plaintext:Encrypt the provided plaintext data..ArrayBuffer):Promise<ArrayBuffer>
Parameters
plaintext
ArrayBuffer
The data to be encrypted.
Throws
SecurityErrorIf the encryption operation fails.
Returns
Promise<ArrayBuffer>
Promise<ArrayBuffer> A promise that resolves to the encrypted
data (ciphertext).
