encrypt Data

private fun encryptData(keyAlias: String, data: String): String

Method used to encrypt a data of the remote host

Return

the data encrypted as String

Parameters

keyAlias

The alias of the secret key of the host

data

The data to encrypt