WebCryptoSubtleCrypto.encryptmethod SubtleCrypto.encrypt#SubtleCrypto.encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams | AesGcmParams | AesCtrParams,key: CryptoKey,data: BufferSource,): 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 ##algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams | AesGcmParams | AesCtrParams#key: CryptoKey#data: BufferSourceReturn Type #Promise<ArrayBuffer>See #https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt
method SubtleCrypto.encrypt#SubtleCrypto.encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams | AesGcmParams | AesCtrParams,key: CryptoKey,data: BufferSource,): 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 ##algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams | AesGcmParams | AesCtrParams#key: CryptoKey#data: BufferSourceReturn Type #Promise<ArrayBuffer>See #https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt