-
Notifications
You must be signed in to change notification settings - Fork 29
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
Compression ? #94
Comments
I agree that compression is a good idea. This was actually one of the original intents for the encoders, as you mention. That way you could do something like As you noticed, though, things get a little weird when the compression is to files - for example, a zip file might not transfer over Twitter very cleanly. I see three ways of dealing with this:
Python has some built-in compression, so a quick prototype of a compression encoder should be easy to set up. Would love to hear your thoughts on this - I like the current "base64 everything" approach because it's easy, but I'm still not sure what the right approach is. |
So I'd say we can keep it simple by doing: Where In this case you don't need to change our channels or encoders, but just add a new block (the effort shouldn't be too much). What do you think? |
I was thinking that maybe we need to add some sort of compression.
it's useful when you need to exfiltrate big files, but I'm wondering how we can integrate that.
My first thought was to make it mandatory, i.e. hardcode it and use it on every channel, but then I realized that it may not be good for a general point of view. Also, I would like to let the user choose which compression scheme to use.
The best way to implement it would be to add a third "chain": Encoder -> Channel -> Compression.
It shouldn't be hard to implement but it can be tricky to integrate without making sneaky-creeper messy.
The easier way would be to include compression into the encoding modules. In this way, you just need to create an encoder ad use is, maybe chaining with other encoders (like AES + zip, or RSA + rar, etc etc).
What do you think?
The text was updated successfully, but these errors were encountered: