encrypt

open suspend override fun encrypt(data: ByteArray): ByteArray

Encrypts the given data. It uses a lock to ensure thread safety.

Return

The encrypted data.

Parameters

data

The data to encrypt.