# Can the AES256 plugin be used with pdf file?

**URL:** <https://forum.bubble.io/t/can-the-aes256-plugin-be-used-with-pdf-file/128613>\
**Category:** Plugins\
**Created:** [January 3, 2021, 10:28am UTC](https://forum.bubble.io/t/can-the-aes256-plugin-be-used-with-pdf-file/128613 "2021-01-03T10:28:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nimmarn.c](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@nimmarn.c](https://forum.bubble.io/u/nimmarn.c)\
**Post date:** [January 3, 2021, 10:28am UTC](https://forum.bubble.io/t/can-the-aes256-plugin-be-used-with-pdf-file/128613/1 "2021-01-03T10:28:50Z")

</div>

Hi,  
I mean this plugin [here.](https://bubble.io/plugin/aes256-encrypt--decrypt-1573205422070x332823723938414600)  
I saw a [youtube video](https://www.youtube.com/watch?v=l3e0EmmVZX0) that encrypt & decrypt the text by using that plugin but can it be used to encrypt & decrypt pdf file too?  
I’m trying to use it with pdf and then render the file in pdf.js viewer which also has a plugin [here.](https://bubble.io/plugin/pdf-viewer-1551944147648x791480255247810600)  
Thanks.

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [January 3, 2021, 10:55am UTC](https://forum.bubble.io/t/can-the-aes256-plugin-be-used-with-pdf-file/128613/2 "2021-01-03T10:55:43Z")

</div>

Short answer, Yes.

You will need to convert the PDF to a Base64 and then encrypt it. I can add that to my Plugin if you wish to combine the functionality.

> **[Symmetric Encrypt & Decrypt Plugin for Bubble](https://bubble.io/plugin/symmetric-encrypt--decrypt-1607629307010x588620654686240800)**
>
> Symmetric Encrypt & Decrypt Plugin page on Bubble. Add Symmetric Encrypt & Decrypt in one click to your app. Bubble lets you build web apps without any code.

---

<div class="post-metadata">

**Author:** ![nimmarn.c](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@nimmarn.c](https://forum.bubble.io/u/nimmarn.c)\
**Post date:** [January 3, 2021, 4:49pm UTC](https://forum.bubble.io/t/can-the-aes256-plugin-be-used-with-pdf-file/128613/3 "2021-01-03T16:49:16Z")

</div>

Hi @nocodeventure  
I did try convert PDF to Base64 but there are many problems.  
First, the file size is getting bigger and I don’t know if you can store the converted file somewhere  
but if the Base64 file is stored in the bubble database it will cause my app to be very slow even if the pdf file is a little bit over 10 Mb.  
Not sure how to store the AES256 encrypted file in the database. Because the plugin I mentioned can’t be chosen in the workflow (For example, if the AES256 is at step2 and I want to change things in step3-\> I can’t choose “result of step2” not sure if i did something wrong or not).

I did watch your plugin and visit your demo page but not quite understand.  
Could you try encrypt pdf with your plugin (also try some big file like 50Mb) and re-open it with the pdf-viewer I mentioned?  
If it works I would gladly buy your plugin.

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [January 3, 2021, 5:52pm UTC](https://forum.bubble.io/t/can-the-aes256-plugin-be-used-with-pdf-file/128613/4 "2021-01-03T17:52:23Z")

</div>

Sounds like a cool experiment. Let me try it and I will update you soon 😉
