encrypt

fun encrypt(unencryptedCard: UnencryptedCard, publicKey: String): String

Encrypts all the card data present in UnencryptedCard into a single block of content.

Return

The encrypted card data String.

Parameters

unencryptedCard

The card data to be encrypted.

publicKey

The key to be used for encryption.

Throws

in case the encryption fails.