Please refer below implementation guide for JWE encryption
https://www.npmjs.com/package/node-jose#handling-crit-header-members-1
alg : The alg (algorithm) identifies the cryptographic algorithm used to secure the JWE Encrypted Key. Please use below algo:
RSA-OAEP
enc : The enc (encryption method) identifies the symmetric encryption algorithm used to secure the Ciphertext. Please use below enc:
A128CBC-HS256
Please refer below request body params for encrypted request:
Param name | Type | Description |
---|---|---|
payload | String | Encrypted body payload |
kid | String | Juspay private key identifier shared by Juspay |
sid | String | Merchant public key identifier shared by merchant |
format | String | Please pass compact always. |