Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Larger files support #11

Open
ajutzeler opened this issue May 21, 2019 · 3 comments
Open

Larger files support #11

ajutzeler opened this issue May 21, 2019 · 3 comments

Comments

@ajutzeler
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants