encryptFields

fun encryptFields(unencryptedCard: UnencryptedCard, publicKey: String): EncryptedCard

Encrypts the available card data from UnencryptedCard into individual encrypted blocks.

Return

An EncryptedCard object with each encrypted field.

Parameters

unencryptedCard

The card data to be encrypted.

publicKey

The key to be used for encryption.

Throws

in case the encryption fails.