---
page_source: https://docs.juspay.io/jusbiz/docs/resources/decryption-guide
page_title: Decryption Guide
---


# Decryption Guide



Please refer below implementation guide for JWE / JWS.

[NPM Library](https://www.npmjs.com/package/node-jose) - Above library carries basic understanding of JSON web encryption/decryption and its implementation in node.js. You can use this understanding to build your logic for other frameworks.  

> **Note**
> **alg**  : The alg (algorithm) identifies the cryptographic algorithm used to secure the JWE Encrypted Key. Please use following algorithm: **RSA-OAEP-256** 



> **Note**
> **enc**  : The encryption identifies the symmetric encryption algorithm used to secure the Ciphertext. Please use following encryption: **A256GCM** 



Please refer below request body params for encrypted response:


### Step 1 Receive encrypted payload


JusBiz will send encrypted response payload 




### Step 2 Decrypt the Payload


Use your private key to decrypt the payload (JWE) using **RSA_OAEP_256** **+ A256GCM**  as the algorithm (usually this is just a call to a crypto library)




### Step 3 Use the decrypted response


Utilise the payload as per documentation



Please refer below sample decryption algorithms:

**Java** 


#### Shell Code Snippet:

```shell
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```
