encrypt

suspend fun encrypt(algorithm: Algorithm, key: CryptoKey, data: BufferSource): ArrayBuffer(source)

MDN Reference


suspend fun encrypt(algorithm: String, key: CryptoKey, data: BufferSource): ArrayBuffer(source)
suspend fun encrypt(algorithm: RsaOaepParams, key: CryptoKey, data: BufferSource): ArrayBuffer(source)
suspend fun encrypt(algorithm: AesCtrParams, key: CryptoKey, data: BufferSource): ArrayBuffer(source)
suspend fun encrypt(algorithm: AesCbcParams, key: CryptoKey, data: BufferSource): ArrayBuffer(source)
suspend fun encrypt(algorithm: AesGcmParams, key: CryptoKey, data: BufferSource): ArrayBuffer(source)