encrypt

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

The encrypt() method of the SubtleCrypto interface encrypts data.

MDN Reference


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