encryptField
Encrypts a single field into a block of content.
Return
The encrypted string.
Parameters
fieldKeyToEncrypt
The key of the field to be encrypted.
fieldValueToEncrypt
The value of the field to be encrypted.
publicKey
The key to be used for encryption.
Throws
in case the encryption fails.