fluttercommunity / flutter_downloader

Flutter Downloader - A plugin for creating and managing download tasks.
https://pub.dev/packages/flutter_downloader
BSD 3-Clause "New" or "Revised" License
913 stars 513 forks source link

Downloading and decrypting encrypted file / transformation rules #888

Open tomekit opened 1 year ago

tomekit commented 1 year ago

I am wondering if it's possible to decrypt encrypted file during download with this package?

Perhaps there is some way to provide the transformation function for the stream that's being downloaded?

In our case file is on the remote server available via HTTPS via link: http://example.com/encrypted_file.mp4 encrypted using some protocol. We would like to decrypt it during download and save decrypted on the phone locally.

Possibly related: https://github.com/fluttercommunity/flutter_downloader/issues/128

salmaahhmed commented 1 year ago

@tomekit Thank you for raising the issue. currently we don't support that but if you're willing to submit a PR i would gladly review it