method webcrypto.SubtleCrypto.encrypt
Jump to headingSubtleCrypto.encrypt(): Promise<ArrayBuffer>
Using the method and parameters specified by algorithm
and the keying material provided by key
,
subtle.encrypt()
attempts to encipher data
. If successful,
the returned promise is resolved with an <ArrayBuffer>
containing the encrypted result.
The algorithms currently supported include:
'RSA-OAEP'
'AES-CTR'
'AES-CBC'
'AES-GCM'
Parameters Jump to heading
Jump to headingalgorithm:
Return Type Jump to heading
Promise<ArrayBuffer>