deno.com
method SubtleCrypto.encrypt
#SubtleCrypto.encrypt(): Promise<ArrayBuffer>

Encrypts data using a cryptographic key.

This method is used with both symmetric (AES) and asymmetric (RSA) encryption.

Examples #

#
await crypto.subtle.encrypt("RSA-OAEP", key, data);

Parameters #

Return Type #

Promise<ArrayBuffer>

See #