Decrypt Message policy helps in decrypting messages received from the target endpoint or an API consumer. To decrypt the data accurately, the correct key and algorithm used in the encryption of data need to be known.


Figure 1: Decrypt Message Policy Configuration


For the same project used in the Encrypt Message section, configure a Decrypt Message policy as shown below and add it to the Proxy Response. The algorithm and key used must be the same as the ones used in Encrypt Message policy.

When the request is sent, the Target Response will be encrypted and this encrypted message will be decrypted in the Proxy Response. The Result will be the same as the one without Encrypt and Decrypt policies:

{"Envelope": {"Body": {"ConversionRateResponse": {"ConversionRateResult": "0.0157"}}}}
Adaptavist ThemeBuilder EngineAtlassian Confluence