Can the AES256 plugin be used with pdf file?

Hi,
I mean this plugin here.
I saw a youtube video 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.
Thanks.

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.

1 Like

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.

1 Like

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

1 Like