danielquinn / django-encrypted-filefield

Encrypt uploaded files, store them wherever you like and stream them back unencrypted
GNU General Public License v3.0
65 stars 22 forks source link

Larger files support #11

Open ajutzeler opened 5 years ago

ajutzeler commented 5 years ago

Hi @danielquinn

It is my understanding that we can only save files with EncryptedFileField whose content fits in memory and that this limitation comes from your Cryptographer being based on pyca/cryptography's Fernet.

Is there any plan to support larger files and supports chunked files and moving existing FS files like Django's FileField does?

I imagine that it would be possible by going into pyca/cryptography's "Hazardous Layer".

Thank you very much.

danielquinn commented 5 years ago

That's definitely a limitation with the current implementation. However the time I have available for work on this library is limited, so it's not something I'm going to do in the near future. However, I'm always happy to field pull requests for something like this -- just please make sure you submit patches with tests :-)

ajutzeler commented 5 years ago

Thank you for your prompt reply.

I am going to discuss the issue within my company and if we decide to carry on by implementing it, I'll send you a PR for sure.

danielquinn commented 5 years ago

Cool beans! If it helps at all, here's some code I wrote for another project for use in hashing large files. I don't know if the methodology would be the same, but it may be worth a look.