Encryption key¶
You can add your own encryption key to encrypt the bundle from IadCameraController. Add the encryption key to the project in any convenient way and set it as the value of derPublicKey
in the EncryptionKey
singleton.
val derPublicKey = assets.open("rsa-public-key.der").readBytes()
EncryptionKey.derPublicKey = derPublicKey
See for more information Payload encryption page.
Multiply encryption keys¶
If you use several encryption keys on the server side, you can specify which key should be used by its key ID.
EncryptionKey.keyId = "CC797160-34B4-49F4-BA0D-46799A3948D3"