# How to encrypt largerfiles like image or pdf using openFHE?

**URL:** <https://openfhe.discourse.group/t/how-to-encrypt-largerfiles-like-image-or-pdf-using-openfhe/451>\
**Category:** FHE Use Cases\
**Created:** [April 6, 2023, 4:59am UTC](https://openfhe.discourse.group/t/how-to-encrypt-largerfiles-like-image-or-pdf-using-openfhe/451 "2023-04-06T04:59:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_vinoth22](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@ss\_vinoth22](https://openfhe.discourse.group/u/ss_vinoth22)\
**Post date:** [April 6, 2023, 4:59am UTC](https://openfhe.discourse.group/t/how-to-encrypt-largerfiles-like-image-or-pdf-using-openfhe/451/1 "2023-04-06T04:59:28Z")

</div>

I would like to use FHE on the Chat system, in which we might have a scenario to upload images and pdf, which should be encrypted, is OpenFHE supported for that? if so can u give some examples of how to achieve it?

---

<div class="post-metadata">

**Author:** ![iquah](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/iquah/32/8_2.png) [@iquah](https://openfhe.discourse.group/u/iquah)\
**Post date:** [April 6, 2023, 1:46pm UTC](https://openfhe.discourse.group/t/how-to-encrypt-largerfiles-like-image-or-pdf-using-openfhe/451/2 "2023-04-06T13:46:19Z")

</div>

Images are just arrays of integers `HEIGHT x WIDTH x CHANNELS` of values between `0-255`, so that should be fine. I’m not sure about PDFs
