This python script shows how to decrypt an encrypted REST API response. Replace the script’s values with your environment’s values for the following variables:
key_str—The encryption key that you generated when you configured encryption for your cluster; see Configure Encryption (or the comparable page for a Supervisor version other than the latest).
cluster_name—Your cluster name.
encrypted_str—The encrypted string returned from a call to the Pepperdata REST API.
Be sure to include the string’s prefix and postfix characters, -.. and ._, because the decrypt function looks for these characters.