Macil / deno_streaming_zip

Deno library for working with ZIP file streams
MIT License
3 stars 0 forks source link

[Feature] Encryption #1

Open sntran opened 2 years ago

sntran commented 2 years ago

Describe the solution you'd like

I am running Deno Deploy worker to backup data from cloud services to another, as zip archives. Certain users have requested for their backups to be encrypted, since they may contain personal data. Currently, I have to fetch data locally, zip it with encryption, and then upload again. It would be nice to be able to use a library to stream it all in one step.

Describe alternatives you've considered

There is Touffy/client-zip that does streaming zip with new Web Standards, but it has not supported encryption yet.

The other alternative is really just to download data all at once, zip it with encryption, and upload the result.

Macil commented 2 years ago

This library's code may be a useful base to implement such a thing, but the library is not directly capable of this right now. This library is not under active development but you're free to make use of the code. I'm willing to accept PRs if you make changes to it that fit with its current structure, but otherwise feel free to fork it for a specialized use-case.