Live encrypt and decrypt inside Apidog. PAN, Aadhaar and bank account numbers travel as e1. blobs (AES-256-GCM, key PII_CIPHER_KEY, base64 of 32 bytes). Stored forms are v1 PAN, a1 Aadhaar, p1 phone, b1 bank account, x1 KYC XML.Setup: put the key in the environment variable piiCipherKey (a secret variable). Nothing else is needed.Automatic. The collection pre-processor seals {{pan}} and {{aadhaar}} into {{panSealed}} and {{aadhaarSealed}} before POST /application/kyc. The post-processor opens every sealed value in every response, prints the clear JSON in the console, keeps it in lastDecrypted, and captures clear values (for example pan) for the next call. With no key set, requests still work and sealed values stay sealed.This folder has no endpoints.Manual. One-off encrypt and decrypt are on the API Console PII tab. Set piiInput and piiFormat, then read piiOutput. A new key is written to piiNewKey.
Modified at 2026-11-04 21:33:56