553
Order (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] Fedegenerate@lemmynsfw.com 63 points 1 year ago* (last edited 1 year ago)

Anyone willing to drop some learning on a lay person? Is encrypted data less compressable because it lacks the patterns compression relies on?

Or, is it less secure to encrypt first because smart people things? I know enough about cryptography to know I know fuck all about cryptography.

[-] marcos@lemmy.world 58 points 1 year ago

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.

[-] Venat0r@lemmy.world 25 points 1 year ago

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

load more comments (1 replies)
load more comments (13 replies)
this post was submitted on 10 Aug 2023
553 points (97.9% liked)

Programmer Humor

19480 readers
200 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