encrypt method
The encrypt()
method of the SubtleCrypto interface encrypts data.
It takes as its arguments a to encrypt with, some algorithm-specific
parameters, and the data to encrypt (also known as "plaintext").
It returns a Promise
which will be fulfilled with the encrypted data
(also known as "ciphertext").
Implementation
external JSPromise<JSAny?> encrypt(
AlgorithmIdentifier algorithm,
CryptoKey key,
BufferSource data,
);