JWT Encryption Guide
Juspay uses JWS to sign request payloads, and JWE to encrypt the signed request. These are created by using 2 sets of Private Key & Public Keys issued for merchants and Juspay. Merchants will use their private key to sign the API request payload and then encrypt the signed API request with Juspay’s public key. Juspay will use its private key to decrypt the message and Merchant’s public key to verify the signature.
Keys Generation
JWT Encryption
Steps to construct a JWT Payload
JWT Decryption
Steps to Decrypt a JWT Payload

