sfmcsdk / com.salesforce.marketingcloud.sfmcsdk.components.encryption / EncryptionManager

EncryptionManager

class EncryptionManager

This class is part of SFMCSdkComponents and provides manual encrypting/decrypting methods.

Functions

decrypt

Decrypts an encrypted String

fun decrypt(data: String): String?

encrypt

Encrypts a String with a random IV

fun encrypt(data: String): String?

Encrypts a String with a provided IV

fun encrypt(data: String, iv: ByteArray): String?

generateIV

Generates an IV that can be passed to encrypt for repeatable results

fun generateIV(): ByteArray