method webcrypto.SubtleCrypto.decrypt
#SubtleCrypto.decrypt(): Promise<ArrayBuffer>
Using the method and parameters specified in algorithm
and the keying material provided by key
,
subtle.decrypt()
attempts to decipher the provided data
. If successful,
the returned promise will be resolved with an <ArrayBuffer>
containing the plaintext result.
The algorithms currently supported include:
'RSA-OAEP'
'AES-CTR'
'AES-CBC'
'AES-GCM'
Parameters #
#algorithm:
#data: BufferSource
Return Type #
Promise<ArrayBuffer>