...
Which APIs are supported for encryption?
Product |
---|
Plaintext API Endpoint | Encrypted API Endpoint | API Doc | |
---|---|---|---|
Outbound Multicast | |||
Outbound Dialler | https://central.phonon.io/kairos-apis/enc/outbounddialer/create |
...
Encryption Mechanism:
The payload of the supported APIs are encrypted with the following method. We use AES-512 & RSA for encryption of payload.
...
Download the Public Key (public_key.pem) file from “Edit Flow” section.
Take the valid JSON payload of the API which needs to be passed. Let’s call it “payload”
Encode the payload using Base64 encoding. Let’s call the result “payload-B64”.
Generate a random string of upto 2048 characters to be used as the signature key
Encode that with Base64 encoding. Let’s call it “signatureKey-B64”
Use AES-512/ECB/PKCS5Padding encryption method to encrypt “payload-B64” with “signatureKey-B64”. Let’s call the result “payload-B64-AES”.
Encrypt the encoded signature key with RSA Encryption using the Public Key obtained on step 1. Let’s call it “signatureKey-B64-RSA”.
Send both “payload-B64-AES” and “signatureKey-B64-RSA” as parameters to the encrypted API.
...
Code Block | ||
---|---|---|
| ||
{ "api-response-code": 200, "api-response-message": "Success", "request-id": "367a25ec-065b-4ca7-a73f-70d1da818a22", "call-details": [ { "client-identifier": "2021-05-17T05:47:30.536Z", "phonon-uuid": "6a79da04-cf07-4c42-973f-998ea3380708" } ] } |