DEV Community

Discussion on: Should you encrypt or compress first?

Collapse
 
mveytsman profile image
Max Veytsman

Honestly, I don't have a universal answer here.

I wrote this article because I kept hearing compress then encrypt as a universal answer, and wanted to point out that it can lead to data leakage.

To muddle the point even further, since writing this article I've found that there's research about encrypting first and still actually compressing (see pdfs.semanticscholar.org/372d/0dae... )

I think the answer is that you have to be aware of this when designing systems that encrypt and/or compress data...