logoalt Hacker News

The mathematics of compression in database systems

34 pointsby agavralast Tuesday at 5:07 PM4 commentsview on HN

Comments

sreantoday at 3:49 PM

Then there is this eternal conversation about whether on should encrypt and then compress or compress and then encrypt.

Encrypted data will not compress well because encryption needs to remove patterns and patterns are what one exploits for compression.

If you compress and then encrypt, yes you can leak information through the file sizes, but there isn't really a way out of this. Encryption and compression are fundamentally at odds with each other.

show 1 reply
esafaktoday at 3:34 PM

Your SSL cert is invalid.