encryptFields

fun encryptFields(publicKey: String, vararg fieldsToEncrypt: Pair<String, Any?>): String

Encrypts multiple fields into a single block of content.

Return

The encrypted string.

Parameters

publicKey

The key to be used for encryption.

fieldsToEncrypt

The fields to be encrypted.

Throws

in case the encryption fails.