# Gzip encryption

**URL:** <https://community.postman.com/t/gzip-encryption/29388>\
**Category:** Help Hub\
**Created:** [November 4, 2021, 9:35am UTC](https://community.postman.com/t/gzip-encryption/29388 "2021-11-04T09:35:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![security-technologis](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@security-technologis](https://community.postman.com/u/security-technologis)\
**Post date:** [November 4, 2021, 9:35am UTC](https://community.postman.com/t/gzip-encryption/29388/1 "2021-11-04T09:35:47Z")

</div>

Hello,

For using an API, i need to pass in the body a string encrypted with base64+gzip. I found the way to encrypt with base64, but not in gzip.

My code :

var CryptoJS = require(‘crypto-js’)

pm.collectionVariables.set(“blocB\_decode”, “test”);  
var blocB\_code = CryptoJS.enc.Utf8.parse(“blocB\_decode”)  
var blocB\_code = CryptoJS.enc.Base64.stringify(blocB\_code);

Anyone already did this please?

---

<div class="post-metadata">

**Author:** ![security-technologis](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@security-technologis](https://community.postman.com/u/security-technologis)\
**Post date:** [November 8, 2021, 1:41pm UTC](https://community.postman.com/t/gzip-encryption/29388/2 "2021-11-08T13:41:36Z")

</div>

anyone can help me plz?
