encrypt

abstract fun encrypt(data: Array<Byte>): Array<Byte>

Encrypts the provided data using an encryption algorithm.

Return

The encrypted data.

Parameters

data

The data to be encrypted.

Throws

If an error occurs during encryption.