this post was submitted on 10 Aug 2023
536 points (97.9% liked)

Programmer Humor

19623 readers
5 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 58 points 1 year ago (1 children)

It's not compressible at all. You will end-up with a file that is larger than the original.

Whether compressing before you encrypt leaks information, or not compressing is what leaks, or it's irrelevant is complicated to decide and depends on the details of what you are doing. But encrypting and then compressing is a bit worse than useless, and always a mistake.

[–] [email protected] 26 points 1 year ago (2 children)

Also might be faster to encrypt a compressed file, since it will be smaller?

[–] [email protected] 5 points 1 year ago

Well, encryption tends to be either a very fast operation or something with a slow stage that doesn't depend on the size of your data. So although this is technically true, it's also not relevant.