encrypt

open suspend override fun encrypt(plaintext: ByteArray): EncryptionResult

Encrypts the given plaintext bytes.

Return

a EncryptionResult containing the ciphertext and any platform-specific extras.

Parameters

plaintext

the raw bytes to encrypt.