Encrypt your data before sending it to Deck

Sensitive data in requests can be encrypted in two ways:
  1. Payload encryption – encrypt the entire payload.
  2. Input field encryption – encrypt only the input field (for /jobs/submit only).
In all cases, always use the correct Content-Type application/json+encrypted for sending encrypted data

1. Payload encryption

Encrypt the entire payload before sending. Example (unencrypted):
{
  "job_code": "EnsureConnection",
  "input": "{
    "source_guid": "11115055-46cf-4e49-6ba4-08ddcbf23235",
    "username": "123",
    "password": "xyz"
  }"
}
Becomes (encrypted):
{
    "encrypted_payload": "il0hAWW83PG7ZwHkeLQzJRn8X01RNdyK8DI86jkZJTLjkYdOTQfhVn/y/dsAU+6D0T0ODgKCcNxoGqUs5Z+cvei3+3J99XP3bOXGzxwL6ZaNpO5f7YotVBHBimqtHpNceEP9s2Kahvk/v1MMf0NQRKA7H4mz2dXyyiU3+mDIMQOPO9dBF2omZTNS1lOOsrfWL1YDDBISIN8i86jb5dzVSXnTfAxclZDWnofLY4DfO2dZ0pNAfRd/a2qkyaf/AEhepmHlURM=",
    "encryption_version": "1.0"
}

2. Input Field Encryption (/jobs/submit only)

Encrypt only the input field. Example (unencrypted):
{
  "job_code": "EnsureConnection",
  "input": {
    "source_guid": "11115055-46cf-4e49-6ba4-08ddcbf23235",
    "username": "123",
    "password": "xyz"
  }
}
Becomes (encrypted):
{
  "job_code": "FetchBalance",
  "input": "mhK3Mc4qXdOjvNsjOASSgwbDk33HxySsPQo5FYPLOzSqyZHFjBFMesA3v31qyTHWWzcC7eGMQQSKsCp6/z3LATYD5tD+0eU9m2vOC/CYYKh78UcVHe07lpTeeZUs9Uc5vm/m77yKRw=="
}