# How to decode a message in base64 in json format using the function CryptoJS

**URL:** <https://community.postman.com/t/how-to-decode-a-message-in-base64-in-json-format-using-the-function-cryptojs/25254>\
**Category:** Help Hub\
**Tags:** tests, variables, json\
**Created:** [June 28, 2021, 5:41am UTC](https://community.postman.com/t/how-to-decode-a-message-in-base64-in-json-format-using-the-function-cryptojs/25254 "2021-06-28T05:41:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![research-candidate-2](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@research-candidate-2](https://community.postman.com/u/research-candidate-2)\
**Post date:** [June 28, 2021, 5:41am UTC](https://community.postman.com/t/how-to-decode-a-message-in-base64-in-json-format-using-the-function-cryptojs/25254/1 "2021-06-28T05:41:07Z")

</div>

I have been researching on how to link postman with github. Once the link was established, the content fetched was by default encoded to base64 in json format.  
Now, I’m trying to decode the message by writing scripts in Test, but unable to do so.  
Is there any script for decoding using CryptoJS?

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [June 28, 2021, 6:00am UTC](https://community.postman.com/t/how-to-decode-a-message-in-base64-in-json-format-using-the-function-cryptojs/25254/2 "2021-06-28T06:00:35Z")

</div>

Hello @research-candidate-2,

I haven’t tried using CryptoJS, but I see this [post](https://community.postman.com/t/how-to-decrypt-the-response-into-normal-json/1771). Please check if there’s something you need. Also you can try searching the forum 😊

---

<div class="post-metadata">

**Author:** ![sahuvikramp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sahuvikramp/32/10828_2.png) [@sahuvikramp](https://community.postman.com/u/sahuvikramp)\
**Post date:** [March 4, 2022, 2:48pm UTC](https://community.postman.com/t/how-to-decode-a-message-in-base64-in-json-format-using-the-function-cryptojs/25254/3 "2022-03-04T14:48:36Z")

</div>

Hello @research-candidate-2,

Now, you can find a dedicated collection for [Crypto JS library](https://www.postman.com/postman/workspace/postman-answers/collection/18070393-66f7caac-3005-44b2-8620-16dfb64a35f4) on postman.

And you can also find Base64 encoding and decoding [here].([Postman](https://www.postman.com/postman/workspace/postman-answers/request/18070393-8e222e0a-1972-4804-a72f-5d993445c848))

Cheers 🎉
