encrypt

open suspend fun encrypt(plaintext: ByteArray): ByteArray(source)

Encrypts the given plaintext and returns the resulting ciphertext as a ByteArray.

Use encryptBlocking when calling from non-suspending code.


open suspend fun encrypt(plaintext: ByteString): ByteString(source)

Encrypts the given plaintext and returns the resulting ciphertext as a ByteString.

Use encryptBlocking when calling from non-suspending code.