Encrypt the Resource parameter of Pega API
We are planning to use OOTB Pega API’s for handling the case documents ( upload,Get,Delete operations), one of the API (application/v2/cases/{caseID}/attachments) which consumer use for sending document to Pega and responded with attachment id (like pzInskey of link-attachment instance) to the consumer, They use the same attachment id to fetch the document content using below OOTB API but consumer requested for encrypt the resource parameter value(attachmentID) to shorten the URL instead of sending whole pzInskey value as resource parameter in the url..
https://org-api.test.orgnet.org/prweb/api/application/v2/attachments/{attachmentID}
Is there recommendation or existing functions to encrypt the value to shorten the resource parameter content in the url?