2 ms·
Why would you not compress first, then encrypt?
by brnt 4y ago
Why would you not compress first, then encrypt?
- yellowapple 4y agoBecause I usually think about encryption long before I think about compression; the latter's a bit of an afterthought. Ain't the most logical answer in the world, and if I planned from the outset to both compress and encrypt then I'd do it in that order, but compression usually doesn't cross my mind for archival (whereas encryption is pretty much the default for any data I have that's worth archiving).
- ChadNauseam 4y agoThis can lead to side-channel attacks, see https://en.m.wikipedia.org/wiki/CRIME https://en.m.wikipedia.org/wiki/CRIME