question

RathanaKalaivanan-6834 avatar image
0 Votes"
RathanaKalaivanan-6834 asked RathanaKalaivanan-6834 commented

How to decrypt any blob file using key in Azure functions(python)

I need to decrypt a file stored in Azure blob storage using the key and store the decrypted file in another blob storage. Is it possible to perform this operation using Azure functions(Python).

azure-functions
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RathanaKalaivanan-6834 - You can certainly do that. Which encryption program are you using? Is it PGP?

0 Votes 0 ·

Yes @MikeUrnun, it's PGP. Also is it possible to work with a 40GB using Azure functions under the consumption plan?

0 Votes 0 ·

1 Answer

MikeUrnun avatar image
1 Vote"
MikeUrnun answered

@RathanaKalaivanan-6834 You can use Azure KeyVault for storing & managing your PGP key and load it in your python code to do the decryption operation. The consumption plan has a 1.5GB memory but as long as you're processing your files in smaller chunks, you should be fine. There are multiple ways of approaching the implementation in Python depending on whether you're processing a text file vs binaries like images etc.. but the general solution is to read the files in smaller chunks and avoid memory overflow.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.