Comment on Order

<- View Parent
dan@lemm.ee ⁨1⁩ ⁨year⁩ ago

Lossless compression algorithms aren’t magical, they make some data bigger and some data smaller, the trick is that the stuff they make smaller happens to match common patterns. Given truly random data, lossless compression algorithms will make the data larger.

A good encryption algorithm will output data that’s effectively indistinguishable from randomness.

Put those two facts together and it’s pretty easy to see why you should compress first then encrypt.

source
Sort:hotnewtop