Text (Encryption)
Data protection endpoint
METHOD: POST
ENDPOINT: https://api.playground.protegrity.com/v1/text
DESCRIPTION:
Protect or unprotect sample text using encryption. Received text must be hex encoded. The returned value is hex encoded. There is no limitation on the text’s length however payload limits apply.
ATTRIBUTES:
data
(required) Input data to transform.
operation
(required) Specify if to protect or unprotect data. Accepts: [ protect | unprotect ]
.
SAMPLE REQUEST
curl --location 'https://api.playground.protegrity.com/v1/text' \
--header 'x-api-key: <API_Key>' \
--header 'Content-Type: application/json' \
--header 'Authorization: <JWT_TOKEN>' \
--data '{
"operation": "protect",
"data": ["48656c6c6f20576f726c640a"]
}'
SAMPLE RESPONSE
[
"E616C7B0762E28A32E0FABF4BC403C8D"
]
Last modified January 14, 2025